(member: string, message: string)
| 112 | // once for each member, with the stack of the code reading it. Counted once |
| 113 | // logged, so where console.warn throws, as a test's may, each read throws |
| 114 | const warnOnce = (member: string, message: string) => { |
| 115 | if (printing || warned.has(member)) return |
| 116 | console.warn(new Error(message)) |
| 117 | warned.add(member) |
| 118 | } |
| 119 | |
| 120 | // A read of a member a validator lacks warns rather than throws, and reads |
| 121 | // undefined as in production, so code testing whether a validator has a |
no test coverage detected