Skip to content

Commit

Permalink
fix: run mode resolving, close #717, close #719
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 10, 2022
1 parent 5f00788 commit 837711d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/vitest/src/constants.ts
Expand Up @@ -49,7 +49,6 @@ export const configDefaults: UserConfig = Object.freeze({
isolate: true,
watchIgnore: [/\/node_modules\//, /\/dist\//],
update: false,
watch: !process.env.CI,
reporters: ['default'],
silent: false,
api: false,
Expand Down
2 changes: 2 additions & 0 deletions packages/vitest/src/node/cli.ts
Expand Up @@ -62,6 +62,8 @@ async function runRelated(relatedFiles: string[] | string, argv: UserConfig) {
}

async function dev(cliFilters: string[], argv: UserConfig) {
if (argv.watch == null)
argv.watch = !process.env.CI && !argv.run
await run(cliFilters, argv)
}

Expand Down

0 comments on commit 837711d

Please sign in to comment.