Configuration for nx output under playwright (#33177)
When playwright starts the development web server, have it tell nx to use the `stream` output style, which is somewhat clearer than the default. (Specifically, it distinguishes between output from different tasks, so you can see where any errors are coming from.)
This commit is contained in:
committed by
GitHub
parent
aadf760e3c
commit
cf4b8744ab
@@ -91,7 +91,7 @@ export default defineConfig<{}, WorkerOptions>({
|
||||
trace: "on-first-retry",
|
||||
},
|
||||
webServer: {
|
||||
command: process.env.CI ? "npx serve -p 8080 -L ./webapp" : "pnpm start",
|
||||
command: process.env.CI ? "npx serve -p 8080 -L ./webapp" : "nx --outputStyle stream start",
|
||||
url: `${baseURL}/config.json`,
|
||||
reuseExistingServer: true,
|
||||
timeout: (process.env.CI ? 30 : 120) * 1000,
|
||||
|
||||
Reference in New Issue
Block a user