@japa/runner 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -305,6 +305,9 @@ async function run() {
305
305
  globalTimeout = runnerOptions.timeout;
306
306
  }
307
307
  activeSuite = new Core_1.Suite(suite.name, emitter);
308
+ if (typeof suite.configure === 'function') {
309
+ suite.configure(activeSuite);
310
+ }
308
311
  const files = await collectFiles(suite.files);
309
312
  runner.add(activeSuite);
310
313
  await importFiles(files);
@@ -52,6 +52,7 @@ export declare type Config = BaseConfig & ({
52
52
  suites: {
53
53
  name: string;
54
54
  files: string | string[] | (() => string[] | Promise<string[]>);
55
+ configure?: (suite: Suite) => void;
55
56
  timeout?: number;
56
57
  }[];
57
58
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@japa/runner",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Runner for Japa testing framework",
5
5
  "main": "build/index.js",
6
6
  "files": [