Commit cc5a0a3
authored
fix: Fix test mocking by deferring env var access (#115)
- Move VITE_APP_AZURESEARCH_* from module level to function body
- Allows vi.stubEnv() to properly override environment variables in tests
- Resolves timing issue where GitHub Actions empty string env prevented mocking1 parent 59a0490 commit cc5a0a3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | 82 | | |
85 | 83 | | |
86 | 84 | | |
| |||
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
| 149 | + | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
0 commit comments