ava 6.0.0 → 6.0.1
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/lib/watcher.js +3 -3
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -522,7 +522,7 @@ export default async function loadCli() { // eslint-disable-line complexity
|
|
|
522
522
|
providers,
|
|
523
523
|
reporter,
|
|
524
524
|
stdin: process.stdin,
|
|
525
|
-
signal: abortController
|
|
525
|
+
signal: abortController?.signal,
|
|
526
526
|
});
|
|
527
527
|
} else {
|
|
528
528
|
let debugWithoutSpecificFile = false;
|
package/lib/watcher.js
CHANGED
|
@@ -370,15 +370,15 @@ async function * plan({api, filter, globs, projectDir, providers, stdin, abortSi
|
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
372
|
|
|
373
|
-
abortSignal
|
|
373
|
+
abortSignal?.addEventListener('abort', () => {
|
|
374
374
|
signalChanged?.({});
|
|
375
375
|
});
|
|
376
376
|
|
|
377
377
|
// And finally, the watch loop.
|
|
378
|
-
while (
|
|
378
|
+
while (abortSignal?.aborted !== true) {
|
|
379
379
|
const {testFiles: files = [], runOnlyExclusive = false} = await changed; // eslint-disable-line no-await-in-loop
|
|
380
380
|
|
|
381
|
-
if (abortSignal
|
|
381
|
+
if (abortSignal?.aborted) {
|
|
382
382
|
break;
|
|
383
383
|
}
|
|
384
384
|
|