Method
constructor
(public readonly options: ISuiteOptions, fn: (ctx?: ISuiteContext) => void)
Source from the content-addressed store, hash-verified
| 62 | private runStarted: boolean; |
| 63 | |
| 64 | constructor(public readonly options: ISuiteOptions, fn: (ctx?: ISuiteContext) => void) { |
| 65 | if (Suite.globalStack) { |
| 66 | Suite.globalStack.push(this); |
| 67 | } |
| 68 | fn(this.context()); |
| 69 | if (Suite.globalStack) { |
| 70 | Suite.globalStack.pop(); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | public async run(ctx: IRunContext) { |
| 75 | const testsAndSuites = [...this.suites, ...this.tests]; |
Callers
nothing calls this directly
Tested by
no test coverage detected