(...inputArgs: any[])
| 223 | ); |
| 224 | } |
| 225 | function test(...inputArgs: any[]) { |
| 226 | assertOrderingForDeclaringTest(); |
| 227 | // TODO is this safe to disable? |
| 228 | // X parallel tests will each invoke the beforeAll hook, but once()ification means each invocation will return the same promise, and tests cannot |
| 229 | // start till it finishes. |
| 230 | // HOWEVER if it returns a single shared state, can tests concurrently use this shared state? |
| 231 | // if(!automaticallyDoSerial && mustDoSerial) throw new Error('Cannot declare non-serial tests because you have declared a beforeAll() hook for this test suite.'); |
| 232 | const { args, macros, title } = parseArgs(inputArgs); |
| 233 | return declareTest( |
| 234 | title, |
| 235 | macros, |
| 236 | automaticallyDoSerial ? avaTest.serial : avaTest, |
| 237 | args |
| 238 | ); |
| 239 | } |
| 240 | test.serial = function (...inputArgs: any[]) { |
| 241 | assertOrderingForDeclaringTest(); |
| 242 | const { args, macros, title } = parseArgs(inputArgs); |
no test coverage detected
searching dependent graphs…