Commit df9773a
committed
test(env): fix CI test failures for getCI() on Ubuntu and Windows
On CI systems (GitHub Actions Ubuntu/Windows), the CI environment variable
exists in process.env. After clearEnv('CI'), getCI() was falling back to
process.env.CI which is truthy on CI systems, causing tests to fail.
Fixed by using vi.stubEnv to clear the actual CI environment variable
before testing the cleared state.1 parent 3d2ee1b commit df9773a
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| 106 | + | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
| 110 | + | |
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
| |||
0 commit comments