(name, options, fn, overrides)
| 389 | |
| 390 | function runInParentContext(Factory) { |
| 391 | function run(name, options, fn, overrides) { |
| 392 | const parent = testResources.get(executionAsyncId()) || lazyBootstrapRoot(); |
| 393 | const subtest = parent.createSubtest(Factory, name, options, fn, overrides); |
| 394 | if (parent instanceof Suite) { |
| 395 | return PromiseResolve(); |
| 396 | } |
| 397 | |
| 398 | return startSubtestAfterBootstrap(subtest); |
| 399 | } |
| 400 | |
| 401 | const test = (name, options, fn) => { |
| 402 | const overrides = { |