( pair: Pair, observation: string, arktype: string, precompiled: string, reason = arktype === precompiled ? "though each prints alike" : undefined )
| 974 | } |
| 975 | |
| 976 | const fail = ( |
| 977 | pair: Pair, |
| 978 | observation: string, |
| 979 | arktype: string, |
| 980 | precompiled: string, |
| 981 | reason = arktype === precompiled ? "though each prints alike" : undefined |
| 982 | ): never => { |
| 983 | const error = new Error( |
| 984 | `${pair.site} diverges from arktype at ${observation}${reason ? `, ${reason}` : ""}: arktype gives ${arktype}, its validator ${precompiled}` |
| 985 | ) |
| 986 | // also raised where a fallback or `expect(...).toThrow()` can't catch it |
| 987 | queueMicrotask(() => { |
| 988 | throw error |
| 989 | }) |
| 990 | throw error |
| 991 | } |
| 992 | |
| 993 | const uncopyable = Symbol("uncopyable") |
| 994 |
no outgoing calls
no test coverage detected