Skip to content

Commit

Permalink
Upgrade to the AVA 3.2 protocol
Browse files Browse the repository at this point in the history
Fixes #21.
  • Loading branch information
novemberborn committed Jul 4, 2021
1 parent 6e68254 commit d9d0c8a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function isValidPatterns(patterns) {
}

module.exports = ({negotiateProtocol}) => {
const protocol = negotiateProtocol(['ava-3'], {version: pkg.version});
const protocol = negotiateProtocol(['ava-3.2'], {version: pkg.version});
if (protocol === null) {
return;
}
Expand Down Expand Up @@ -345,6 +345,18 @@ module.exports = ({negotiateProtocol}) => {

get extensions() {
return [...extensions];
},

ignoreChange() {
return false;
},

resolveTestFile(testFile) {
return testFile;
},

updateGlobs(globs) {
return globs;
}
};
},
Expand Down
2 changes: 1 addition & 1 deletion test/protocol-ava-3.js → test/protocol-ava-3.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const makeProvider = require('..');

const withProvider = (t, run) => run(t, makeProvider({
negotiateProtocol(identifiers, {version}) {
t.true(identifiers.includes('ava-3'));
t.true(identifiers.includes('ava-3.2'));
t.is(version, pkg.version);
return {
ava: {version: '3.0.0'},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Snapshot report for `test/protocol-ava-3.js`
# Snapshot report for `test/protocol-ava-3.2.js`

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

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

Expand Down
File renamed without changes.

0 comments on commit d9d0c8a

Please sign in to comment.