Skip to content

Commit 3c46252

Browse files
committed
refactor(test): remove dotenvx and npm-run-all2 dependencies
- Replace dotenvx with direct env variable setting in test runner - Run vitest directly instead of wrapping with dotenvx process - Remove unused npm-run-all2 dependency - Update pre-commit hook to use inline env vars - Add NODE_COMPILE_CACHE and NODE_ENV to test environment - Improves test startup time by eliminating wrapper process All env vars from .env.test now set directly in spawnOptions.env
1 parent 4a2c1d5 commit 3c46252

File tree

4 files changed

+13
-194
lines changed

4 files changed

+13
-194
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else
88
fi
99

1010
if [ -z "${DISABLE_PRECOMMIT_TEST}" ]; then
11-
dotenvx -q run -f .env.precommit -- pnpm test --staged
11+
NODE_COMPILE_CACHE="./.cache" PRE_COMMIT=1 pnpm test --staged
1212
else
1313
echo "Skipping testing due to DISABLE_PRECOMMIT_TEST env var"
1414
fi

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"@biomejs/biome": "catalog:",
5050
"@biomejs/js-api": "3.0.0",
5151
"@biomejs/wasm-nodejs": "catalog:",
52-
"@dotenvx/dotenvx": "1.49.0",
5352
"@eslint/compat": "1.3.2",
5453
"@eslint/js": "9.35.0",
5554
"@inquirer/checkbox": "4.2.4",
@@ -109,7 +108,6 @@
109108
"minimatch": "9.0.5",
110109
"normalize-package-data": "catalog:",
111110
"npm-package-arg": "catalog:",
112-
"npm-run-all2": "8.0.4",
113111
"out-url": "1.2.2",
114112
"pacote": "catalog:",
115113
"read-yaml-file": "2.1.0",

0 commit comments

Comments
 (0)