diff --git a/crates/vt_bin/tests/e2e_snapshots/fixtures/vitest_browser_cache/snapshots/vitest_browser_caches_inputs_and_restores_outputs.md b/crates/vt_bin/tests/e2e_snapshots/fixtures/vitest_browser_cache/snapshots/vitest_browser_caches_inputs_and_restores_outputs.md index 65977124b..2381aad2d 100644 --- a/crates/vt_bin/tests/e2e_snapshots/fixtures/vitest_browser_cache/snapshots/vitest_browser_caches_inputs_and_restores_outputs.md +++ b/crates/vt_bin/tests/e2e_snapshots/fixtures/vitest_browser_cache/snapshots/vitest_browser_caches_inputs_and_restores_outputs.md @@ -7,7 +7,7 @@ Vitest browser mode runs in headless Chromium with explicit automatic input and first browser run: cache miss writes dist/result.json ``` -$ vitest run +$ VITEST_BROWSER_DEBUG=false vitest run RUN v @@ -35,7 +35,7 @@ remove the generated output so restoration is observable unchanged inputs: cache hit restores dist/result.json ``` -$ vitest run ◉ cache hit, replaying +$ VITEST_BROWSER_DEBUG=false vitest run ◉ cache hit, replaying RUN v @@ -66,7 +66,7 @@ modify a module loaded by the browser automatic input changed: cache miss reruns the browser test ``` -$ vitest run ○ cache miss: 'src/greeting.js' modified, executing +$ VITEST_BROWSER_DEBUG=false vitest run ○ cache miss: 'src/greeting.js' modified, executing RUN v diff --git a/crates/vt_bin/tests/e2e_snapshots/fixtures/vitest_browser_cache/vite-task.json b/crates/vt_bin/tests/e2e_snapshots/fixtures/vitest_browser_cache/vite-task.json index c10af7495..bb5ee2400 100644 --- a/crates/vt_bin/tests/e2e_snapshots/fixtures/vitest_browser_cache/vite-task.json +++ b/crates/vt_bin/tests/e2e_snapshots/fixtures/vitest_browser_cache/vite-task.json @@ -1,7 +1,9 @@ { "tasks": { "test": { - "command": "vitest run", + // "false" silences the browser server's Vite logger, which otherwise prints + // timing-dependent "[optimizer] ..." messages on slow machines. + "command": "VITEST_BROWSER_DEBUG=false vitest run", "cache": { "input": [{ "auto": true }], // TODO: Add @voidzero-dev/vite-task-client and have Vitest report this path as ignored.