From 4d238a1939133f0fc3ba679d8c81dcf9517cb6a5 Mon Sep 17 00:00:00 2001 From: Brandy Smith <6577830+brandyscarney@users.noreply.github.com> Date: Wed, 11 Nov 2026 17:47:48 -0500 Subject: [PATCH] chore(test): run the e2e tests against the production build in ci --- playwright.config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 174ca88..8371fd1 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -19,7 +19,11 @@ export default defineConfig({ }, ], webServer: { - command: 'npm run dev -- --port 4313 --strictPort', + // CI tests the production build, which is what gets deployed, so build-tool + // updates are checked at runtime and not only by `npm run build` succeeding. + command: process.env.CI + ? 'npm run build && npm run preview -- --port 4313 --strictPort' + : 'npm run dev -- --port 4313 --strictPort', url: baseURL, reuseExistingServer: !process.env.CI, timeout: 120_000,