Commit c2f5a40
committed
test: define compile-time globals for Playwright collection
main added an eager isCloud import to StorageKeys, which the custom-node
fixtures import in Playwright's Node collection process. Vite replaces
__DISTRIBUTION__ in browser bundles but nothing defined it under Node,
so every spec aborted before collection. Mirror vite.config.mts's
derivation at config load, the same way vitest.setup.ts already does.1 parent 2f67d21 commit c2f5a40
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
4 | 17 | | |
5 | 18 | | |
6 | 19 | | |
| |||
0 commit comments