(name, createCtx, tests)
| 97 | } |
| 98 | |
| 99 | const contextualizeEach: ContextualizeEach = (name, createCtx, tests) => { |
| 100 | const describe = globalThis.describe |
| 101 | if (!describe) throwNoDescribeError() |
| 102 | |
| 103 | describe(name, () => |
| 104 | tests((name, test) => { |
| 105 | it(name, () => test(createCtx())) |
| 106 | }) |
| 107 | ) |
| 108 | } |
| 109 | |
| 110 | export const contextualize: Contextualize = Object.assign(contextualizeRoot, { |
| 111 | each: contextualizeEach |
nothing calls this directly
no test coverage detected