Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"ignorePaths": ["**/fixtures/**"],
"packageRules": [
{
"description": "Group all Vite+ packages into a single PR; they are published together at the same version, and vp pins vitest to the version bundled in vite-plus. minimumReleaseAge and schedule keep @voidzero-dev/vite-plus-* (the vite catalog alias) on the same policy as vite-plus; the preset's generic npm rule would otherwise hold the alias behind a 3-day age gate and a Monday schedule.",
"description": "Group all Vite+ packages into a single PR; they are published together at the same version, and vp pins all Vitest packages to the version bundled in vite-plus. minimumReleaseAge and schedule keep @voidzero-dev/vite-plus-* (the vite catalog alias) on the same policy as vite-plus; the preset's generic npm rule would otherwise hold the alias behind a 3-day age gate and a Monday schedule.",
"groupName": "vite+",
"matchPackageNames": ["vite-plus", "@voidzero-dev/vite-plus-*", "vitest"],
"matchPackageNames": ["vite-plus", "@voidzero-dev/vite-plus-*", "vitest", "@vitest/*"],
"minimumReleaseAge": "0 days",
"schedule": ["at any time"]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ first browser run: cache miss writes dist/result.json
```
$ vitest run

RUN v4.1.10 <workspace>
RUN v<version> <workspace>

✓ chromium src/greeting.test.js (1 test) <duration>
JSON report written to <workspace>/dist/result.json
Expand Down Expand Up @@ -37,7 +37,7 @@ unchanged inputs: cache hit restores dist/result.json
```
$ vitest run ◉ cache hit, replaying

RUN v4.1.10 <workspace>
RUN v<version> <workspace>

✓ chromium src/greeting.test.js (1 test) <duration>
JSON report written to <workspace>/dist/result.json
Expand Down Expand Up @@ -68,7 +68,7 @@ automatic input changed: cache miss reruns the browser test
```
$ vitest run ○ cache miss: 'src/greeting.js' modified, executing

RUN v4.1.10 <workspace>
RUN v<version> <workspace>

✓ chromium src/greeting.test.js (1 test) <duration>
JSON report written to <workspace>/dist/result.json
Expand Down
5 changes: 5 additions & 0 deletions crates/vt_bin/tests/e2e_snapshots/redact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ pub fn redact_e2e_output(mut output: String, workspace_root: &str) -> String {
let duration_regex = regex::Regex::new(r"\d+(\.\d+)?(ns|ms|s)").unwrap();
output = duration_regex.replace_all(&output, "<duration>").into_owned();

// Redact the version from Vitest's banner. Keep the rest of its output,
// including warnings about mismatched Vitest package versions, visible.
let vitest_version_regex = regex::Regex::new(r"(?m)^ RUN v\d+\.\d+\.\d+").unwrap();
output = vitest_version_regex.replace_all(&output, " RUN v<version>").into_owned();

// Normalize the ", <duration> saved" suffix in cache hit summaries.
// When tools are fast (e.g., Rust binaries), saved time may be 0ns and the
// runner omits the suffix entirely. Stripping it ensures stable snapshots.
Expand Down
Loading
Loading