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 +1 -1
- package/package.json +1 -1
- package/plugin.d.ts +1 -1
- package/readme.md +2 -0
- package/types/test-fn.d.ts +1 -1
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
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:
|
|
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
|
+
[](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 🚀
|
package/types/test-fn.d.ts
CHANGED
|
@@ -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>) |
|