Skip to content

Commit

Permalink
chore: print ready only on watch
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jul 30, 2023
1 parent 0e524c3 commit 8fb2ef6
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -160,7 +160,7 @@ export async function VitestPlugin(options: UserConfig = {}, ctx = new Vitest('t
}
},
async configureServer(server) {
if (process.env.VITE_TEST_WATCHER_DEBUG) {
if (options.watch && process.env.VITE_TEST_WATCHER_DEBUG) {
server.watcher.on('ready', () => {
// eslint-disable-next-line no-console
console.log('[debug] watcher is ready')
Expand Down

0 comments on commit 8fb2ef6

Please sign in to comment.