From b014842860708ff93a40f91821f9fe5f4fb5a2df Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Tue, 25 Jun 2024 20:43:51 +0000 Subject: [PATCH 1/2] Add Node.js 22 support --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e0d2f3..e6cf6f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: node-version: - - 21 + - 22 - 20 - 18 name: Node.js ${{ matrix.node-version }} Quick @@ -45,7 +45,7 @@ jobs: - name: Install Node.js LTS uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: pnpm - name: Install dependencies run: pnpm install --ignore-scripts From e072a63c35be4076b6c51579be1431d0ba7cb9ee Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Tue, 25 Jun 2024 21:22:23 +0000 Subject: [PATCH 2/2] Fix tests --- package.json | 6 +++--- test/dir/{two.test.ts => foo.test.ts} | 4 ++++ test/{one.spec.js => foo.spec.js} | 4 ++++ test/{one.test.js => foo.test.js} | 4 ++++ 4 files changed, 15 insertions(+), 3 deletions(-) rename test/dir/{two.test.ts => foo.test.ts} (73%) rename test/{one.spec.js => foo.spec.js} (73%) rename test/{one.test.js => foo.test.js} (73%) diff --git a/package.json b/package.json index 4226277..8e2414e 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,9 @@ "scripts": { "test:lint": "eslint .", "test:help": "node bin.js --help | node test/find.js Usage", - "test:only": "node bin.js -t two | node test/find.js 'skipped 2'", - "test:pathless": "node bin.js | node test/find.js 'tests 3'", - "test:path": "node bin.js test/*.test.js | node test/find.js 'tests 1'", + "test:only": "node bin.js -t two | node test/find.js 'pass 3'", + "test:pathless": "node bin.js | node test/find.js 'tests 6'", + "test:path": "node bin.js test/*.test.js | node test/find.js 'tests 2'", "test": "pnpm run /^test:/" }, "devDependencies": { diff --git a/test/dir/two.test.ts b/test/dir/foo.test.ts similarity index 73% rename from test/dir/two.test.ts rename to test/dir/foo.test.ts index 6e58903..0c371c1 100644 --- a/test/dir/two.test.ts +++ b/test/dir/foo.test.ts @@ -1,6 +1,10 @@ import { equal } from 'node:assert' import { test } from 'node:test' +test('one', () => { + equal(1, 1) +}) + test('two', () => { equal(2, 2) }) diff --git a/test/one.spec.js b/test/foo.spec.js similarity index 73% rename from test/one.spec.js rename to test/foo.spec.js index 0adbf3d..0c371c1 100644 --- a/test/one.spec.js +++ b/test/foo.spec.js @@ -4,3 +4,7 @@ import { test } from 'node:test' test('one', () => { equal(1, 1) }) + +test('two', () => { + equal(2, 2) +}) diff --git a/test/one.test.js b/test/foo.test.js similarity index 73% rename from test/one.test.js rename to test/foo.test.js index 0adbf3d..0c371c1 100644 --- a/test/one.test.js +++ b/test/foo.test.js @@ -4,3 +4,7 @@ import { test } from 'node:test' test('one', () => { equal(1, 1) }) + +test('two', () => { + equal(2, 2) +})