Skip to content

Commit 3d4a4b8

Browse files
committed
chore: move the check
1 parent d900b3e commit 3d4a4b8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

playground/vitestGlobalSetup.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import { chromium } from 'playwright-chromium'
77
let browserServer: BrowserServer | undefined
88

99
export async function setup({ provide }: TestProject): Promise<void> {
10-
process.env.NODE_ENV = process.env.VITE_TEST_BUILD
11-
? 'production'
12-
: 'development'
13-
1410
browserServer = await chromium.launchServer({
1511
headless: !process.env.VITE_DEBUG_SERVE,
1612
args: process.env.CI

vitest.config.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineConfig({
2626
},
2727
},
2828
env: {
29-
NODE_ENV: 'development',
29+
NODE_ENV: process.env.VITE_TEST_BUILD ? 'production' : 'development',
3030
},
3131
},
3232
esbuild: {

0 commit comments

Comments
 (0)