https://github.com/threepointone/repro-vitest-pool-process-env
https://github.com/threepointone/repro-vitest-pool-process-env
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/threepointone/repro-vitest-pool-process-env
- Owner: threepointone
- Created: 2025-03-29T16:18:10.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-29T16:20:33.000Z (2 months ago)
- Last Synced: 2025-03-29T17:26:31.951Z (2 months ago)
- Language: TypeScript
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A repro to show that process.env is not populated when running tests.
- Make a .dev.vars file in the root with the following:
```
TEST_VALUE=123
```- run `npm start`, open browser to http://localhost:8787/, you'll see "123"
- run `npm test`, you'll see "no value"