Commit bf2e634
committed
fix(test-utils): Inherit environment variables in Playwright webServer
The webServer config was setting `env: { PORT: ... }` which REPLACES
the parent environment instead of merging with it. This meant env vars
like NEXT_PUBLIC_SENTRY_SPOTLIGHT weren't being passed to the Next.js
dev server, causing the Spotlight auto-enablement test to fail.
By spreading `...process.env`, we now inherit all environment variables
from the CI runner, allowing the valueInjectionLoader to work correctly.1 parent e5409e6 commit bf2e634
File tree
3 files changed
+4
-17
lines changed- .github/workflows
- dev-packages/test-utils/src
- packages/nextjs/src/config
3 files changed
+4
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
| 996 | + | |
1005 | 997 | | |
1006 | 998 | | |
1007 | 999 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | 358 | | |
367 | 359 | | |
368 | 360 | | |
| |||
0 commit comments