From fad57ebb31cee1ea6a65bcc15e7b09b6a4b5f63a Mon Sep 17 00:00:00 2001
From: Mikhail Bashkirov <bashmish@gmail.com>
Date: Fri, 26 Jun 2026 17:59:42 +0200
Subject: [PATCH] fix: use node glob to find all test files consistently

---
 packages/browser-logs/package.json                     | 4 ++--
 packages/config-loader/package.json                    | 4 ++--
 packages/dev-server-esbuild/package.json               | 4 ++--
 packages/dev-server-hmr/package.json                   | 4 ++--
 packages/dev-server-import-maps/package.json           | 4 ++--
 packages/dev-server-rollup/package.json                | 4 ++--
 packages/dev-server/package.json                       | 4 ++--
 packages/parse5-utils/package.json                     | 4 ++--
 packages/polyfills-loader/package.json                 | 4 ++--
 packages/rollup-plugin-copy/package.json               | 4 ++--
 packages/rollup-plugin-html/package.json               | 4 ++--
 packages/rollup-plugin-import-meta-assets/package.json | 4 ++--
 packages/rollup-plugin-polyfills-loader/package.json   | 4 ++--
 packages/test-runner-commands/package.json             | 4 ++--
 packages/test-runner-core/package.json                 | 4 ++--
 packages/test-runner-mocha/package.json                | 4 ++--
 packages/test-runner-module-mocking/package.json       | 4 ++--
 packages/test-runner-visual-regression/package.json    | 4 ++--
 18 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/packages/browser-logs/package.json b/packages/browser-logs/package.json
index 40904745d2..dfac484396 100644
--- a/packages/browser-logs/package.json
+++ b/packages/browser-logs/package.json
@@ -26,8 +26,8 @@
   },
   "scripts": {
     "build": "tsc",
-    "test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/config-loader/package.json b/packages/config-loader/package.json
index 47225ee747..a251a42a3d 100644
--- a/packages/config-loader/package.json
+++ b/packages/config-loader/package.json
@@ -27,8 +27,8 @@
   },
   "scripts": {
     "build": "tsc",
-    "test:node": "node --test --test-force-exit test/**/*.test.js",
-    "test:watch": "node --test --test-force-exit --watch test/**/*.test.js"
+    "test:node": "node --test --test-force-exit \"test/**/*.test.js\"",
+    "test:watch": "node --test --test-force-exit --watch \"test/**/*.test.js\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/dev-server-esbuild/package.json b/packages/dev-server-esbuild/package.json
index 8cb5e39891..3f1cef8f23 100644
--- a/packages/dev-server-esbuild/package.json
+++ b/packages/dev-server-esbuild/package.json
@@ -28,8 +28,8 @@
     "build": "tsc",
     "start:demo:jsx": "es-dev-server --config demo/jsx/server.config.js",
     "start:demo:ts": "es-dev-server --config demo/ts/server.config.js",
-    "test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/dev-server-hmr/package.json b/packages/dev-server-hmr/package.json
index 106962d5c6..c85c15f5c4 100644
--- a/packages/dev-server-hmr/package.json
+++ b/packages/dev-server-hmr/package.json
@@ -28,8 +28,8 @@
     "build": "tsc",
     "start:lit-html": "wds --config demo/lit-html/server.config.mjs",
     "start:vanilla": "wds --config demo/vanilla/server.config.mjs",
-    "test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/dev-server-import-maps/package.json b/packages/dev-server-import-maps/package.json
index 74e7e0aae4..758306aa5c 100644
--- a/packages/dev-server-import-maps/package.json
+++ b/packages/dev-server-import-maps/package.json
@@ -27,8 +27,8 @@
   "scripts": {
     "build": "tsc",
     "test:browser": "node ../test-runner/dist/bin.js test-browser/test/**/*.test.{js,html} --config test-browser/web-test-runner.config.mjs",
-    "test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/dev-server-rollup/package.json b/packages/dev-server-rollup/package.json
index 690d8945e5..89296f22d0 100644
--- a/packages/dev-server-rollup/package.json
+++ b/packages/dev-server-rollup/package.json
@@ -25,8 +25,8 @@
     "node": ">=22.0.0"
   },
   "scripts": {
-    "test:node": "node --experimental-strip-types --test --test-force-exit 'test/node/**/*.test.ts'",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch 'test/node/**/*.test.ts'"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/node/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/node/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/dev-server/package.json b/packages/dev-server/package.json
index a7f0535226..0c97e4b7de 100644
--- a/packages/dev-server/package.json
+++ b/packages/dev-server/package.json
@@ -37,8 +37,8 @@
     "start:plugin-serve": "node dist/bin.js --config demo/plugin-serve/config.mjs --open",
     "start:static": "node dist/bin.js --config demo/static/config.mjs --open demo/static/",
     "start:syntax": "node dist/bin.js --config demo/syntax/config.mjs --open demo/syntax/",
-    "test:node": "node --test --test-force-exit test/**/*.test.mjs",
-    "test:watch": "node --test --test-force-exit --watch test/**/*.test.mjs"
+    "test:node": "node --test --test-force-exit \"test/**/*.test.mjs\"",
+    "test:watch": "node --test --test-force-exit --watch \"test/**/*.test.mjs\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/parse5-utils/package.json b/packages/parse5-utils/package.json
index 75f932268a..6f7c67feb3 100644
--- a/packages/parse5-utils/package.json
+++ b/packages/parse5-utils/package.json
@@ -26,8 +26,8 @@
   },
   "scripts": {
     "build": "tsc",
-    "test:node": "node --test --test-force-exit test/**/*.test.js",
-    "test:watch": "node --test --test-force-exit --watch test/**/*.test.js"
+    "test:node": "node --test --test-force-exit \"test/**/*.test.js\"",
+    "test:watch": "node --test --test-force-exit --watch \"test/**/*.test.js\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/polyfills-loader/package.json b/packages/polyfills-loader/package.json
index 03c0de3aa1..35f682076b 100644
--- a/packages/polyfills-loader/package.json
+++ b/packages/polyfills-loader/package.json
@@ -26,8 +26,8 @@
   },
   "scripts": {
     "build": "tsc",
-    "test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/rollup-plugin-copy/package.json b/packages/rollup-plugin-copy/package.json
index 74f82d8848..4aca5def02 100644
--- a/packages/rollup-plugin-copy/package.json
+++ b/packages/rollup-plugin-copy/package.json
@@ -29,8 +29,8 @@
     "node": ">=22.0.0"
   },
   "scripts": {
-    "test:node": "node --test --test-force-exit test/**/*.test.js",
-    "test:watch": "node --test --test-force-exit --watch test/**/*.test.js"
+    "test:node": "node --test --test-force-exit \"test/**/*.test.js\"",
+    "test:watch": "node --test --test-force-exit --watch \"test/**/*.test.js\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/rollup-plugin-html/package.json b/packages/rollup-plugin-html/package.json
index a2de90a29b..c64a2648f8 100644
--- a/packages/rollup-plugin-html/package.json
+++ b/packages/rollup-plugin-html/package.json
@@ -28,8 +28,8 @@
     "demo:mpa": "rm -rf demo/dist && rollup -c demo/mpa/rollup.config.js --watch & npm run serve-demo",
     "demo:spa": "rm -rf demo/dist && rollup -c demo/spa/rollup.config.js --watch & npm run serve-demo",
     "serve-demo": "node ../dev-server/dist/bin.js --watch --root-dir demo/dist --app-index index.html --compatibility none --open",
-    "test:node": "node --experimental-strip-types --test --test-force-exit 'test/**/*.test.ts'",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch 'test/**/*.test.ts'"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.js",
diff --git a/packages/rollup-plugin-import-meta-assets/package.json b/packages/rollup-plugin-import-meta-assets/package.json
index 6f95ebca15..8b069f532f 100644
--- a/packages/rollup-plugin-import-meta-assets/package.json
+++ b/packages/rollup-plugin-import-meta-assets/package.json
@@ -25,8 +25,8 @@
   },
   "scripts": {
     "test": "npm run test:node",
-    "test:node": "node --test --test-force-exit test/**/*.test.js",
-    "test:watch": "node --test --test-force-exit --watch test/**/*.test.js"
+    "test:node": "node --test --test-force-exit \"test/**/*.test.js\"",
+    "test:watch": "node --test --test-force-exit --watch \"test/**/*.test.js\""
   },
   "files": [
     "*.js",
diff --git a/packages/rollup-plugin-polyfills-loader/package.json b/packages/rollup-plugin-polyfills-loader/package.json
index d010c86efd..249cc38549 100644
--- a/packages/rollup-plugin-polyfills-loader/package.json
+++ b/packages/rollup-plugin-polyfills-loader/package.json
@@ -25,8 +25,8 @@
     "node": ">=22.0.0"
   },
   "scripts": {
-    "test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/test-runner-commands/package.json b/packages/test-runner-commands/package.json
index d483a84eb0..7ae0de9178 100644
--- a/packages/test-runner-commands/package.json
+++ b/packages/test-runner-commands/package.json
@@ -30,8 +30,8 @@
   },
   "scripts": {
     "build": "tsc",
-    "test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/test-runner-core/package.json b/packages/test-runner-core/package.json
index 80bf5e3404..6379286c23 100644
--- a/packages/test-runner-core/package.json
+++ b/packages/test-runner-core/package.json
@@ -33,8 +33,8 @@
   },
   "scripts": {
     "build": "tsc",
-    "test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/test-runner-mocha/package.json b/packages/test-runner-mocha/package.json
index 965c3e0d20..e7379d8636 100644
--- a/packages/test-runner-mocha/package.json
+++ b/packages/test-runner-mocha/package.json
@@ -20,8 +20,8 @@
   "scripts": {
     "build": "tsc",
     "build:production": "rimraf dist && rollup -c ./rollup.config.mjs",
-    "test:node": "node --test --test-force-exit test/**/*.test.js",
-    "test:watch": "node --test --test-force-exit --watch test/**/*.test.js"
+    "test:node": "node --test --test-force-exit \"test/**/*.test.js\"",
+    "test:watch": "node --test --test-force-exit --watch \"test/**/*.test.js\""
   },
   "files": [
     "dist"
diff --git a/packages/test-runner-module-mocking/package.json b/packages/test-runner-module-mocking/package.json
index 2f9fb40286..c463627e9a 100644
--- a/packages/test-runner-module-mocking/package.json
+++ b/packages/test-runner-module-mocking/package.json
@@ -24,8 +24,8 @@
   },
   "scripts": {
     "build": "tsc",
-    "test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
diff --git a/packages/test-runner-visual-regression/package.json b/packages/test-runner-visual-regression/package.json
index 9a2f070f1d..7375a18e9c 100644
--- a/packages/test-runner-visual-regression/package.json
+++ b/packages/test-runner-visual-regression/package.json
@@ -30,8 +30,8 @@
   },
   "scripts": {
     "build": "tsc",
-    "test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
-    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
+    "test:node": "node --experimental-strip-types --test --test-force-exit \"test/**/*.test.ts\"",
+    "test:watch": "node --experimental-strip-types --test --test-force-exit --watch \"test/**/*.test.ts\""
   },
   "files": [
     "*.d.ts",
