( name: string, skipped: boolean, callback: AsyncCallback, )
| 66 | } |
| 67 | |
| 68 | function pushSuite( |
| 69 | name: string, |
| 70 | skipped: boolean, |
| 71 | callback: AsyncCallback, |
| 72 | ): void { |
| 73 | const suite = createSuite(name, skipped) |
| 74 | currentSuite().suites.push(suite) |
| 75 | |
| 76 | if (skipped) { |
| 77 | return |
| 78 | } |
| 79 | |
| 80 | suiteStack.push(suite) |
| 81 | try { |
| 82 | callback() |
| 83 | } finally { |
| 84 | suiteStack.pop() |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | function registerHook( |
| 89 | key: |
no test coverage detected