From: Jérôme Benoit Date: Fri, 29 Sep 2023 18:46:21 +0000 (+0200) Subject: test: fix windows globstar pattern handling X-Git-Tag: v1.2.23~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5226ae708bb63d73e47abf769a30a11cd3b9e467;p=e-mobility-charging-stations-simulator.git test: fix windows globstar pattern handling Signed-off-by: Jérôme Benoit --- diff --git a/package.json b/package.json index 830eea9e..64bfc01e 100644 --- a/package.json +++ b/package.json @@ -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", @@ -152,6 +152,7 @@ "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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cd6c0afe..805644a9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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