diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 95fdc19..db6ec16 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - node: [14, 16, 18, 20] + node: [14, 16, 18, 20, 22] steps: - uses: actions/checkout@v4 with: @@ -30,4 +30,9 @@ jobs: run: npm ci --ignore-scripts - name: test - run: npm test + run: | + if [ "${{ matrix.node }}" == "22" ]; then + npm run test:node22 + else + npm test + fi diff --git a/package.json b/package.json index 0483942..9d00c21 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "lintfix": "eslint --fix src", "report": "nyc report --reporter=html", "test": "nyc ava src/__tests__/*.mjs", + "test:node22": "nyc ava src/__tests__/*.mjs --node-arguments=--no-experimental-detect-module", "testone": "ava" }, "dependencies": {