From 5226ae708bb63d73e47abf769a30a11cd3b9e467 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 29 Sep 2023 20:46:21 +0200 Subject: [PATCH] test: fix windows globstar pattern handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- package.json | 5 +++-- pnpm-lock.yaml | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.34.1