[internal] improve assertions #8850
Annotations
6 errors
test/Effect/service.test.ts > Effect.Service > prototype chain:
packages/effect/test/util.ts#L56
AssertionError: expected Time{} to be an instance of Date
❯ Module.assertInstanceOf test/util.ts:56:11
❯ test/Effect/service.test.ts:142:7
|
Test (Node 2/4)
Process completed with exit code 1.
|
test/Context.test.ts > Context > error messages:
packages/effect/test/util.ts#L14
AssertionError: Expected
Service not found: C (defined at /home/runner/work/effect/effect/packages/effect/test/Context.test.ts:29:19)
to match
/Service not found: C \(defined at (.*)Context.test.ts:27:19\)/
❯ fail test/util.ts:14:10
❯ Module.assertMatch test/util.ts:77:5
❯ test/Context.test.ts:70:11
❯ Module.throws test/util.ts:88:9
❯ test/Context.test.ts:64:7
|
test/Micro.test.ts > Micro > tracing > Micro.TaggedError:
packages/effect/test/Micro.test.ts#L20
AssertionError: Expected
TestError:
at Array.<anonymous> (/home/runner/work/effect/effect/packages/effect/test/Micro.test.ts:20:30)
at Generator.next (<anonymous>)
at Object.contA (/home/runner/work/effect/effect/packages/effect/src/Micro.ts:1247:30)
at Object.eval (/home/runner/work/effect/effect/packages/effect/src/Micro.ts:1253:28)
at MicroFiberImpl.runLoop (/home/runner/work/effect/effect/packages/effect/src/Micro.ts:562:44)
at MicroFiberImpl.evaluate (/home/runner/work/effect/effect/packages/effect/src/Micro.ts:531:23)
at Module.runFork (/home/runner/work/effect/effect/packages/effect/src/Micro.ts:5375:9)
at /home/runner/work/effect/effect/packages/effect/src/internal/fiberRuntime.ts:1120:27
at effect.effect_instruction_i0 (/home/runner/work/effect/effect/packages/effect/src/internal/core.ts:498:19)
at FiberRuntime.initiateAsync (/home/runner/work/effect/effect/packages/effect/src/internal/fiberRuntime.ts:1053:7)
to include
Micro.test.ts:13
❯ Array.<anonymous> test/Micro.test.ts:20:30
❯ Object.contA src/Micro.ts:1247:30
❯ Object.eval src/Micro.ts:1253:28
❯ MicroFiberImpl.runLoop src/Micro.ts:562:44
❯ MicroFiberImpl.evaluate src/Micro.ts:531:23
❯ Module.runFork src/Micro.ts:5375:9
❯ src/internal/fiberRuntime.ts:1120:27
❯ effect.effect_instruction_i0 src/internal/core.ts:498:19
❯ FiberRuntime.initiateAsync src/internal/fiberRuntime.ts:1053:7
❯ Array.<anonymous> test/Micro.test.ts:20:30
|
test/Micro.test.ts > Micro > tracing > withTrace:
packages/effect/test/Micro.test.ts#L29
AssertionError: Expected
MicroCause.Fail: boom
at test trace (/home/runner/work/effect/effect/packages/effect/test/Micro.test.ts:29:17)
to include
Micro.test.ts:22
❯ test trace test/Micro.test.ts:29:17
❯ test trace test/Micro.test.ts:29:17
❯ fail test/util.ts:14:10
❯ Module.assertInclude test/util.ts:70:7
❯ Array.<anonymous> test/Micro.test.ts:34:9
|
Test (Node 3/4)
Process completed with exit code 1.
|