MCPcopy Create free account
hub / github.com/Effect-TS/effect / fail

Method fail

packages/effect/src/testing/TestSchema.ts:135–143  ·  view source on GitHub ↗
(input: unknown, message: string)

Source from the content-addressed store, hash-verified

133 return {
134 succeed,
135 async fail(input: unknown, message: string) {
136 const r = await Effect.runPromise(
137 makeEffect(input, options).pipe(
138 Effect.mapErrorEager(SchemaIssue.defaultFormatter),
139 Effect.result
140 )
141 )
142 assert.deepStrictEqual(r, Result.fail(message))
143 }
144 }
145 }
146 /**

Callers 15

extractModuleSinceFunction · 0.45
Plugin.test.tsFile · 0.45
assertEqualsFunction · 0.45
jsdocs.test.tsFile · 0.45
Parser.test.tsFile · 0.45
Core.tsFile · 0.45
parseFileFunction · 0.45
ReporterClass · 0.45
Client.test.tsFile · 0.45

Calls 2

pipeMethod · 0.65
makeEffectFunction · 0.50

Tested by 15

idbRequestFunction · 0.36
openWebSocketFunction · 0.36
connectWebSocketFunction · 0.36
connectFunction · 0.36
assertTickerSurvivesFunction · 0.36
makeHandlerFunction · 0.36
makeFailingAppFunction · 0.36
makeLayerHandlerFunction · 0.36
executeFunction · 0.36
makeScopedTestCacheFunction · 0.36
fFunction · 0.36