Skip to content

Commit 8494d7e

Browse files
committed
chore: guard server if not defined yet
1 parent 73b1490 commit 8494d7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vitest/src/node/workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export class WorkspaceProject {
413413
alias: [],
414414
includeTaskLocation: this.config.includeTaskLocation ?? this.ctx.config.includeTaskLocation,
415415
env: {
416-
...this.server.config.env,
416+
...this.server?.config.env,
417417
...this.config.env,
418418
},
419419
}, this.ctx.configOverride || {} as any) as ResolvedConfig

0 commit comments

Comments
 (0)