From 8fb2ef6dadd470f4f8e1635e9dd375f2b1a661c6 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Sun, 30 Jul 2023 12:51:18 +0200 Subject: [PATCH] chore: print ready only on watch --- packages/vitest/src/node/plugins/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vitest/src/node/plugins/index.ts b/packages/vitest/src/node/plugins/index.ts index 6c911c15ad2a..3d282b759705 100644 --- a/packages/vitest/src/node/plugins/index.ts +++ b/packages/vitest/src/node/plugins/index.ts @@ -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')