Skip to content

Commit

Permalink
fix: remove process.exit if workspace project failed to be created (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored May 31, 2024
1 parent 5878ebf commit a820e7a
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions packages/vitest/src/node/plugins/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,12 @@ export function WorkspaceVitestPlugin(project: WorkspaceProject, options: Worksp
hijackVitePluginInject(viteConfig)
},
async configureServer(server) {
try {
const options = deepMerge(
{},
configDefaults,
server.config.test || {},
)
await project.setServer(options, server)
}
catch (err) {
project.ctx.logger.printError(err, { fullStack: true })
process.exit(1)
}
const options = deepMerge(
{},
configDefaults,
server.config.test || {},
)
await project.setServer(options, server)

await server.watcher.close()
},
Expand Down

0 comments on commit a820e7a

Please sign in to comment.