()
| 131 | } |
| 132 | |
| 133 | private context(): ISuiteContext { |
| 134 | // The any types here are required due to method overloads. |
| 135 | return { |
| 136 | suite: ((...args: [any, any, any]) => this.addSuite(Suite.create(...args))) as typeof suite, |
| 137 | test: ((...args: [any, any, any]) => this.addTest(Test.create(...args))) as typeof test, |
| 138 | beforeEach: ((...args: [any, any, any]) => |
| 139 | this.addHook(this.beforeEaches, Hook.create(...args))) as typeof hook, |
| 140 | afterEach: ((...args: [any, any, any]) => |
| 141 | this.addHook(this.afterEaches, Hook.create(...args))) as typeof hook, |
| 142 | before: ((...args: [any, any, any]) => |
| 143 | this.addHook(this.setUps, Hook.create(...args))) as typeof hook, |
| 144 | after: ((...args: [any, any, any]) => |
| 145 | this.addHook(this.tearDowns, Hook.create(...args))) as typeof hook |
| 146 | }; |
| 147 | } |
| 148 | } |
no test coverage detected