Repository navigation
Commit 5777d84
committed
fix: clean env vars in validate-env test beforeEach
The tests captured originalEnv at module load time. In CI, env vars
like DATABASE_URL may already be set, so beforeEach was restoring
them. Tests that assumed vars were missing actually had them present.
Now beforeEach explicitly deletes all required env vars to ensure
a clean state for each test.1 parent 22993b0 commit 5777d84
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments