( ...args: DescribeArgs<T> )
| 1255 | * instead. |
| 1256 | */ |
| 1257 | export function describe<T>( |
| 1258 | ...args: DescribeArgs<T> |
| 1259 | ): TestSuite<T> { |
| 1260 | if (TestSuiteInternal.runningCount > 0) { |
| 1261 | throw new Error( |
| 1262 | "Cannot register new test suites after already registered test cases start running", |
| 1263 | ); |
| 1264 | } |
| 1265 | const options = describeDefinition(...args); |
| 1266 | if (!TestSuiteInternal.started) TestSuiteInternal.started = true; |
| 1267 | const { symbol } = new TestSuiteInternal(options); |
| 1268 | return { symbol }; |
| 1269 | } |
| 1270 | |
| 1271 | /** |
| 1272 | * Only execute this test suite. |
no test coverage detected