Update ava to 4.3.3
The [release notes](https://github.com/avajs/ava/releases/tag/v4.3.3) mention compatibility with Node 18.8.
This commit is contained in:
parent
21530f507f
commit
bea5e4b220
160 changed files with 2647 additions and 2263 deletions
12
node_modules/ava/lib/api.js
generated
vendored
12
node_modules/ava/lib/api.js
generated
vendored
|
|
@ -177,13 +177,19 @@ export default class Api extends Emittery {
|
|||
const fileCount = selectedFiles.length;
|
||||
|
||||
// The files must be in the same order across all runs, so sort them.
|
||||
selectedFiles = selectedFiles.sort((a, b) => a.localeCompare(b, [], {numeric: true}));
|
||||
const defaultComparator = (a, b) => a.localeCompare(b, [], {numeric: true});
|
||||
selectedFiles = selectedFiles.sort(this.options.sortTestFiles || defaultComparator);
|
||||
selectedFiles = chunkd(selectedFiles, currentIndex, totalRuns);
|
||||
|
||||
const currentFileCount = selectedFiles.length;
|
||||
|
||||
runStatus = new RunStatus(fileCount, {currentFileCount, currentIndex, totalRuns}, selectionInsights);
|
||||
} else {
|
||||
// If a custom sorter was configured, use it.
|
||||
if (this.options.sortTestFiles) {
|
||||
selectedFiles = selectedFiles.sort(this.options.sortTestFiles);
|
||||
}
|
||||
|
||||
runStatus = new RunStatus(selectedFiles.length, null, selectionInsights);
|
||||
}
|
||||
|
||||
|
|
@ -261,8 +267,8 @@ export default class Api extends Emittery {
|
|||
}
|
||||
|
||||
const lineNumbers = getApplicableLineNumbers(globs.normalizeFileForMatching(apiOptions.projectDir, file), filter);
|
||||
// Removing `providers` field because they cannot be transfered to the worker threads.
|
||||
const {providers, ...forkOptions} = apiOptions;
|
||||
// Removing `providers` and `sortTestFiles` fields because they cannot be transferred to the worker threads.
|
||||
const {providers, sortTestFiles, ...forkOptions} = apiOptions;
|
||||
const options = {
|
||||
...forkOptions,
|
||||
providerStates,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue