test: fix windows globstar pattern handling
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 29 Sep 2023 18:46:21 +0000 (20:46 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 29 Sep 2023 18:46:21 +0000 (20:46 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
package.json
pnpm-lock.yaml

index 830eea9e4854692a6d19b94a4f8398e71a6a81d7..64bfc01ef2e6b1d7e4096bbbe2f8e20fa2a5df64 100644 (file)
@@ -75,8 +75,8 @@
     "lint": "cross-env TIMING=1 eslint --cache src",
     "lint:fix": "cross-env TIMING=1 eslint --cache --fix src",
     "format": "prettier --cache --write .",
-    "test": "c8 node --loader tsx --no-warnings=ExperimentalWarning --test test/**/*.test.ts",
-    "test:debug": "node --loader tsx --no-warnings=ExperimentalWarning --test --inspect test/**/*.test.ts",
+    "test": "glob -c \"c8 node --loader tsx --no-warnings=ExperimentalWarning --test\" \"test/**/*.test.ts\"",
+    "test:debug": "glob -c \"node --loader tsx --no-warnings=ExperimentalWarning --test --inspect\" \"test/**/*.test.ts\"",
     "coverage": "c8 report --reporter=lcov",
     "coverage:html": "c8 report --reporter=html",
     "clinic:clean": "clinic clean",
     "eslint-plugin-prettier": "^5.0.0",
     "eslint-plugin-tsdoc": "^0.2.17",
     "expect": "^29.7.0",
+    "glob": "^10.3.10",
     "husky": "^8.0.3",
     "lint-staged": "^14.0.1",
     "prettier": "^3.0.3",
index cd6c0afed35d67eda4c69e0cd9005aa9b6ed671a..805644a9c6d42113171c3d9d98f1150ba2bf3fcd 100644 (file)
@@ -168,6 +168,9 @@ devDependencies:
   expect:
     specifier: ^29.7.0
     version: 29.7.0
+  glob:
+    specifier: ^10.3.10
+    version: 10.3.10
   husky:
     specifier: ^8.0.3
     version: 8.0.3