Skip to content

Commit 935d314

Browse files
committed
Upgrade to the AVA 3.2 protocol
Fixes #21.
1 parent 6e68254 commit 935d314

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

index.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function isValidPatterns(patterns) {
267267
}
268268

269269
module.exports = ({negotiateProtocol}) => {
270-
const protocol = negotiateProtocol(['ava-3'], {version: pkg.version});
270+
const protocol = negotiateProtocol(['ava-3.2'], {version: pkg.version});
271271
if (protocol === null) {
272272
return;
273273
}
@@ -345,6 +345,18 @@ module.exports = ({negotiateProtocol}) => {
345345

346346
get extensions() {
347347
return [...extensions];
348+
},
349+
350+
ignoreChange() {
351+
return false;
352+
},
353+
354+
resolveTestFile(testFile) {
355+
return testFile;
356+
},
357+
358+
updateGlobs(globs) {
359+
return globs;
348360
}
349361
};
350362
},

test/protocol-ava-3.js test/protocol-ava-3.2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const makeProvider = require('..');
77

88
const withProvider = (t, run) => run(t, makeProvider({
99
negotiateProtocol(identifiers, {version}) {
10-
t.true(identifiers.includes('ava-3'));
10+
t.true(identifiers.includes('ava-3.2'));
1111
t.is(version, pkg.version);
1212
return {
1313
ava: {version: '3.0.0'},

test/snapshots/protocol-ava-3.js.md test/snapshots/protocol-ava-3.2.js.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Snapshot report for `test/protocol-ava-3.js`
1+
# Snapshot report for `test/protocol-ava-3.2.js`
22

3-
The actual snapshot is saved in `protocol-ava-3.js.snap`.
3+
The actual snapshot is saved in `protocol-ava-3.2.js.snap`.
44

55
Generated by [AVA](https://avajs.dev).
66

File renamed without changes.

0 commit comments

Comments
 (0)