Skip to content

Commit cdd5075

Browse files
committed
refactor(test): replace dotenv with native Node.js env file loading
1 parent 2e4a285 commit cdd5075

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lint": "eslint src test bin scripts",
2020
"test-only": "node --test-reporter=spec --test ./test/**/*.spec.ts",
2121
"test": "c8 --all --src ./src -r html npm run test-only",
22-
"test:e2e": "node -r dotenv/config --test-reporter=spec --test ./test/**/*.e2e-spec.ts",
22+
"test:e2e": "node --env-file-if-exists=.env --test-reporter=spec --test ./test/**/*.e2e-spec.ts",
2323
"preview:light": "node --no-warnings ./scripts/preview.ts --theme light",
2424
"preview:dark": "node --no-warnings ./scripts/preview.ts --theme dark",
2525
"prepublishOnly": "npm run build"

0 commit comments

Comments
 (0)