(
schema: S.Schema<A, I>,
input: unknown,
expected: string,
options?: {
readonly parseOptions?: AST.ParseOptions | undefined
} | undefined
)
| 12 | import * as Util from "./TestUtils.js" |
| 13 | |
| 14 | const expectSyncTree = <A, I>( |
| 15 | schema: S.Schema<A, I>, |
| 16 | input: unknown, |
| 17 | expected: string, |
| 18 | options?: { |
| 19 | readonly parseOptions?: AST.ParseOptions | undefined |
| 20 | } | undefined |
| 21 | ) => { |
| 22 | const actual = S.decodeUnknownEither(schema)(input, options?.parseOptions).pipe( |
| 23 | Either.mapLeft((e) => ParseResult.TreeFormatter.formatIssueSync(e.issue)) |
| 24 | ) |
| 25 | assertLeft(actual, expected) |
| 26 | } |
| 27 | |
| 28 | const expectSyncIssues = <A, I>( |
| 29 | schema: S.Schema<A, I>, |
no test coverage detected