MCPcopy Index your code
hub / github.com/Effect-TS/effect / expectHook

Function expectHook

packages/effect/test/Schema/Pretty.test.ts:381–384  ·  view source on GitHub ↗
(source: S.Schema<A, I>)

Source from the content-addressed store, hash-verified

379
380 describe("should handle annotations", () => {
381 const expectHook = <A, I>(source: S.Schema<A, I>) => {
382 const schema = source.annotations({ pretty: () => () => "custom pretty" })
383 Util.assertions.pretty(schema, null as any, "custom pretty")
384 }
385
386 it("void", () => {
387 expectHook(S.Void)

Callers 1

Pretty.test.tsFile · 0.70

Calls 1

annotationsMethod · 0.65

Tested by

no test coverage detected