Skip to content

Commit

Permalink
AVA 5
Browse files Browse the repository at this point in the history
* Update GHA workflow
* Upgrade to AVA 5
* Update other dependencies
  • Loading branch information
novemberborn committed Jul 2, 2023
1 parent 77d7e1f commit 011135c
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ^16
node-version: ^20
- run: npm it
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import {createRequire} from 'node:module';
import {pathToFileURL} from 'node:url';

const require = createRequire(import.meta.url);
const mainEntrypoint = pathToFileURL(require.resolve('@ava/v4'));
import(new URL('./cli.mjs', mainEntrypoint));
const mainEntrypoint = pathToFileURL(require.resolve('@ava/v5'));
import(new URL('cli.mjs', mainEntrypoint));
2 changes: 1 addition & 1 deletion index.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('@ava/v4');
module.exports = require('@ava/v5');
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {default} from '@ava/v4';
export {default} from '@ava/v5';
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {default} from '@ava/v4';
export {default} from '@ava/v5';
2 changes: 1 addition & 1 deletion index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@ava/v4';
import type test from '@ava/v5';
import {expectType} from 'tsd';
import pkg from '.';

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Mark Wubben (https://novemberborn.net/)",
"license": "MIT",
"scripts": {
"test": "xo && tsd && ./node_modules/@ava/v4/entrypoints/cli.mjs"
"test": "xo && tsd && ./node_modules/@ava/v5/entrypoints/cli.mjs"
},
"bin": {
"test-ava": "./cli.js"
Expand All @@ -26,10 +26,10 @@
"index.d.ts"
],
"dependencies": {
"@ava/v4": "npm:ava@4.3.3"
"@ava/v5": "npm:ava@5.3.1"
},
"devDependencies": {
"tsd": "^0.19.1",
"xo": "^0.47.0"
"tsd": "^0.28.1",
"xo": "^0.54.2"
}
}
2 changes: 1 addition & 1 deletion test.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const test = require('@ava/v4');
const test = require('@ava/v5');

test('exports ava (CJS)', t => {
t.is(test, require('@ava/test'));
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@ava/v4';
import test from '@ava/v5';

test('exports ava (ESM)', async t => {
const {default: exported} = await import('@ava/test');
Expand Down

0 comments on commit 011135c

Please sign in to comment.