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 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.signal,
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.addEventListener('abort', () => {
373
+ abortSignal?.addEventListener('abort', () => {
374
374
  signalChanged?.({});
375
375
  });
376
376
 
377
377
  // And finally, the watch loop.
378
- while (!abortSignal.aborted) {
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.aborted) {
381
+ if (abortSignal?.aborted) {
382
382
  break;
383
383
  }
384
384
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ava",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Node.js test runner that lets you develop with confidence.",
5
5
  "license": "MIT",
6
6
  "repository": "avajs/ava",