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/test.js
generated
vendored
12
node_modules/ava/lib/test.js
generated
vendored
|
|
@ -24,16 +24,16 @@ const testMap = new WeakMap();
|
|||
class ExecutionContext extends Assertions {
|
||||
constructor(test) {
|
||||
super({
|
||||
pass: () => {
|
||||
pass() {
|
||||
test.countPassedAssertion();
|
||||
},
|
||||
pending: promise => {
|
||||
pending(promise) {
|
||||
test.addPendingAssertion(promise);
|
||||
},
|
||||
fail: error => {
|
||||
fail(error) {
|
||||
test.addFailedAssertion(error);
|
||||
},
|
||||
skip: () => {
|
||||
skip() {
|
||||
test.countPassedAssertion();
|
||||
},
|
||||
compareWithSnapshot: options => test.compareWithSnapshot(options),
|
||||
|
|
@ -109,7 +109,7 @@ class ExecutionContext extends Assertions {
|
|||
logs: [...logs], // Don't allow modification of logs.
|
||||
passed,
|
||||
title: attemptTitle,
|
||||
commit: ({retainLogs = true} = {}) => {
|
||||
commit({retainLogs = true} = {}) {
|
||||
if (committed) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -132,7 +132,7 @@ class ExecutionContext extends Assertions {
|
|||
startingSnapshotCount,
|
||||
});
|
||||
},
|
||||
discard: ({retainLogs = false} = {}) => {
|
||||
discard({retainLogs = false} = {}) {
|
||||
if (committed) {
|
||||
test.saveFirstError(new Error('Can’t discard a result that was previously committed'));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue