File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export function createTest(options: Partial<TestOptions>): TestHooks {
5050 }
5151
5252 if ( ctx . options . server ) {
53- await startServer ( )
53+ await startServer ( ctx . options . env )
5454 }
5555
5656 if ( ctx . options . waitFor ) {
Original file line number Diff line number Diff line change 11import type { Nuxt , NuxtConfig } from '@nuxt/schema'
22import type { ExecaChildProcess } from 'execa'
33import type { Browser , LaunchOptions } from 'playwright-core'
4+ import type { StartServerOptions } from './server'
45
56export type TestRunner = 'vitest' | 'jest' | 'cucumber'
67
@@ -24,6 +25,7 @@ export interface TestOptions {
2425 }
2526 server : boolean
2627 port ?: number
28+ env ?: StartServerOptions [ 'env' ]
2729}
2830
2931export interface TestContext {
You can’t perform that action at this time.
0 commit comments