diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77bb9d7..01e7ef1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,11 +1,14 @@ name: Test that AVA is wrapped correctly -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: - node-version: ^20 + node-version: ^24 - run: npm it diff --git a/cli.js b/cli.js index 01dce9b..de24472 100755 --- a/cli.js +++ b/cli.js @@ -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/v6')); +const mainEntrypoint = pathToFileURL(require.resolve('@ava/v7')); import(new URL('cli.mjs', mainEntrypoint)); diff --git a/index.cjs b/index.cjs index c0681ce..01d6050 100644 --- a/index.cjs +++ b/index.cjs @@ -1 +1 @@ -module.exports = require('@ava/v6'); +module.exports = require('@ava/v7'); diff --git a/index.d.ts b/index.d.ts index 9400d44..94f67a6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1 +1 @@ -export {default} from '@ava/v6'; +export {default} from '@ava/v7'; diff --git a/index.js b/index.js index 9400d44..94f67a6 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -export {default} from '@ava/v6'; +export {default} from '@ava/v7'; diff --git a/index.test-d.ts b/index.test-d.ts index 5d8c5f5..9986a66 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -1,5 +1,5 @@ -import type test from '@ava/v6'; +import type test from '@ava/v7'; import {expectType} from 'tsd'; -import pkg from '.'; +import pkg from './index.js'; expectType(pkg); diff --git a/package.json b/package.json index 672843a..b0fdea6 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "author": "Mark Wubben (https://novemberborn.net/)", "license": "MIT", "scripts": { - "test": "xo && tsd && ./node_modules/@ava/v6/entrypoints/cli.mjs" + "test": "xo && tsd && ./node_modules/@ava/v7/entrypoints/cli.mjs" }, "bin": { "test-ava": "./cli.js" @@ -26,10 +26,10 @@ "index.d.ts" ], "dependencies": { - "@ava/v6": "npm:ava@^6" + "@ava/v7": "npm:ava@^7" }, "devDependencies": { - "tsd": "^0.30.1", - "xo": "^0.56.0" + "tsd": "^0.33.0", + "xo": "^2.0.2" } } diff --git a/test.cjs b/test.cjs index 53cd633..9fb3049 100644 --- a/test.cjs +++ b/test.cjs @@ -1,4 +1,4 @@ -const test = require('@ava/v6'); +const test = require('@ava/v7'); test('exports ava (CJS)', t => { t.is(test, require('@ava/test')); diff --git a/test.js b/test.js index 8e871f0..0418e86 100644 --- a/test.js +++ b/test.js @@ -1,4 +1,4 @@ -import test from '@ava/v6'; +import test from '@ava/v7'; test('exports ava (ESM)', async t => { const {default: exported} = await import('@ava/test');