ava 4.1.0 → 4.2.0

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/lib/cli.js CHANGED
@@ -393,7 +393,7 @@ export default async function loadCli() { // eslint-disable-line complexity
393
393
  }
394
394
 
395
395
  let parallelRuns = null;
396
- if (isCi && ciParallelVars) {
396
+ if (isCi && ciParallelVars && combined.utilizeParallelBuilds !== false) {
397
397
  const {index: currentIndex, total: totalRuns} = ciParallelVars;
398
398
  parallelRuns = {currentIndex, totalRuns};
399
399
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ava",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Node.js test runner that lets you develop with confidence.",
5
5
  "license": "MIT",
6
6
  "repository": "avajs/ava",
package/plugin.d.ts CHANGED
@@ -41,7 +41,7 @@ export namespace SharedWorker {
41
41
  readonly file: string;
42
42
  publish: (data: Data) => PublishedMessage<Data>;
43
43
  subscribe: () => AsyncIterableIterator<ReceivedMessage<Data>>;
44
- teardown: <TeardownFn extends () => void> (fn: TeardownFn) => TeardownFn;
44
+ teardown: (fn: (() => Promise<void>) | (() => void)) => () => Promise<void>;
45
45
  };
46
46
 
47
47
  export namespace Plugin {
package/readme.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine/)
2
+
1
3
  # <img src="media/header.png" title="AVA" alt="AVA logo" width="530">
2
4
 
3
5
  AVA is a test runner for Node.js with a concise API, detailed error output, embrace of new language features and process isolation that lets you develop with confidence 🚀
@@ -46,7 +46,7 @@ export interface PlanFn {
46
46
  export type TimeoutFn = (ms: number, message?: string) => void;
47
47
 
48
48
  /** Declare a function to be run after the test has ended. */
49
- export type TeardownFn = (fn: () => void) => void;
49
+ export type TeardownFn = (fn: (() => Promise<void>) | (() => void)) => void;
50
50
 
51
51
  export type ImplementationFn<Args extends unknown[], Context = unknown> =
52
52
  ((t: ExecutionContext<Context>, ...args: Args) => PromiseLike<void>) |