Skip to content

Commit

Permalink
refactor(cli): set config.watch in resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
DerYeger committed Feb 9, 2022
1 parent 2465848 commit 1021c7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vitest/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const configDefaults: UserConfig = Object.freeze({
watchIgnore: [/\/node_modules\//, /\/dist\//],
update: false,
run: !!process.env.CI,
watch: !process.env.CI,
watch: false,
reporters: 'default',
silent: false,
api: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export async function VitestPlugin(options: UserConfig = {}, ctx = new Vitest())
options,
)
options.api = resolveApiConfig(options)
options.watch = options.watch && !options.run
options.watch = !options.run
},
async configureServer(server) {
if (haveStarted)
Expand Down

0 comments on commit 1021c7c

Please sign in to comment.