Skip to content

Commit b949cff

Browse files
authored
Merge pull request #3122 from modernweb-dev/fix/use-node-glob-to-find-all-test-files-consistently
fix: use node glob to find all test files consistently
2 parents 8be0f90 + fad57eb commit b949cff

18 files changed

Lines changed: 36 additions & 36 deletions

File tree

packages/browser-logs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
},
2727
"scripts": {
2828
"build": "tsc",
29-
"test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
30-
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
29+
"test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
30+
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
3131
},
3232
"files": [
3333
"*.d.ts",

packages/config-loader/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
},
2828
"scripts": {
2929
"build": "tsc",
30-
"test:node": "node --test --test-force-exit test/**/*.test.js",
31-
"test:watch": "node --test --test-force-exit --watch test/**/*.test.js"
30+
"test:node": "node --test --test-force-exit \"test/**/*.test.js\"",
31+
"test:watch": "node --test --test-force-exit --watch \"test/**/*.test.js\""
3232
},
3333
"files": [
3434
"*.d.ts",

packages/dev-server-esbuild/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"build": "tsc",
2929
"start:demo:jsx": "es-dev-server --config demo/jsx/server.config.js",
3030
"start:demo:ts": "es-dev-server --config demo/ts/server.config.js",
31-
"test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
32-
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
31+
"test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
32+
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
3333
},
3434
"files": [
3535
"*.d.ts",

packages/dev-server-hmr/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"build": "tsc",
2929
"start:lit-html": "wds --config demo/lit-html/server.config.mjs",
3030
"start:vanilla": "wds --config demo/vanilla/server.config.mjs",
31-
"test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
32-
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
31+
"test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
32+
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
3333
},
3434
"files": [
3535
"*.d.ts",

packages/dev-server-import-maps/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"scripts": {
2828
"build": "tsc",
2929
"test:browser": "node ../test-runner/dist/bin.js test-browser/test/**/*.test.{js,html} --config test-browser/web-test-runner.config.mjs",
30-
"test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
31-
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
30+
"test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
31+
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
3232
},
3333
"files": [
3434
"*.d.ts",

packages/dev-server-rollup/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"node": ">=22.0.0"
2626
},
2727
"scripts": {
28-
"test:node": "node --experimental-strip-types --test --test-force-exit 'test/node/**/*.test.ts'",
29-
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch 'test/node/**/*.test.ts'"
28+
"test:node": "node --experimental-strip-types --test --test-force-exit \"test/node/**/*.test.ts\"",
29+
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/node/**/*.test.ts\""
3030
},
3131
"files": [
3232
"*.d.ts",

packages/dev-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"start:plugin-serve": "node dist/bin.js --config demo/plugin-serve/config.mjs --open",
3838
"start:static": "node dist/bin.js --config demo/static/config.mjs --open demo/static/",
3939
"start:syntax": "node dist/bin.js --config demo/syntax/config.mjs --open demo/syntax/",
40-
"test:node": "node --test --test-force-exit test/**/*.test.mjs",
41-
"test:watch": "node --test --test-force-exit --watch test/**/*.test.mjs"
40+
"test:node": "node --test --test-force-exit \"test/**/*.test.mjs\"",
41+
"test:watch": "node --test --test-force-exit --watch \"test/**/*.test.mjs\""
4242
},
4343
"files": [
4444
"*.d.ts",

packages/parse5-utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
},
2727
"scripts": {
2828
"build": "tsc",
29-
"test:node": "node --test --test-force-exit test/**/*.test.js",
30-
"test:watch": "node --test --test-force-exit --watch test/**/*.test.js"
29+
"test:node": "node --test --test-force-exit \"test/**/*.test.js\"",
30+
"test:watch": "node --test --test-force-exit --watch \"test/**/*.test.js\""
3131
},
3232
"files": [
3333
"*.d.ts",

packages/polyfills-loader/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
},
2727
"scripts": {
2828
"build": "tsc",
29-
"test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
30-
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
29+
"test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
30+
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
3131
},
3232
"files": [
3333
"*.d.ts",

packages/rollup-plugin-copy/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"node": ">=22.0.0"
3030
},
3131
"scripts": {
32-
"test:node": "node --test --test-force-exit test/**/*.test.js",
33-
"test:watch": "node --test --test-force-exit --watch test/**/*.test.js"
32+
"test:node": "node --test --test-force-exit \"test/**/*.test.js\"",
33+
"test:watch": "node --test --test-force-exit --watch \"test/**/*.test.js\""
3434
},
3535
"files": [
3636
"*.d.ts",

0 commit comments

Comments
 (0)