Skip to content

Commit 8a0cf56

Browse files
Add support for Vitest 3.1.x (#8804)
* Adds vitest 3.1.x support * Bump up esbuild to 0.25.1 to address vulnerability concern * Adds missing changeset * Bump up local vitest versions * Rollback eslint update * fixup snapshot --------- Co-authored-by: Peter Bacon Darwin <[email protected]>
1 parent eab7ad9 commit 8a0cf56

File tree

5 files changed

+172
-155
lines changed

5 files changed

+172
-155
lines changed

.changeset/stupid-goats-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/vitest-pool-workers": minor
3+
---
4+
5+
Add support for Vitest 3.1.x

packages/vitest-pool-workers/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
"vitest": "catalog:default"
7777
},
7878
"peerDependencies": {
79-
"@vitest/runner": "2.0.x - 3.0.x",
80-
"@vitest/snapshot": "2.0.x - 3.0.x",
81-
"vitest": "2.0.x - 3.0.x"
79+
"@vitest/runner": "2.0.x - 3.1.x",
80+
"@vitest/snapshot": "2.0.x - 3.1.x",
81+
"vitest": "2.0.x - 3.1.x"
8282
},
8383
"volta": {
8484
"extends": "../../package.json"

packages/wrangler/src/__tests__/d1/insights.test.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -196,18 +196,19 @@ describe("insights", () => {
196196
);
197197
await runWrangler("d1 insights my-database --json");
198198
expect(std.out).toMatchInlineSnapshot(`
199-
"[
200-
{
201-
\\"query\\": \\"sample query\\",
202-
\\"avgRowsRead\\": 0,
203-
\\"totalRowsRead\\": 10,
204-
\\"avgRowsWritten\\": 0,
205-
\\"totalRowsWritten\\": 0,
206-
\\"avgDurationMs\\": 0,
207-
\\"totalDurationMs\\": 0,
208-
\\"numberOfTimesRun\\": 0,
209-
\\"queryEfficiency\\": 0
210-
}
211-
]"`);
199+
"[
200+
{
201+
\\"query\\": \\"sample query\\",
202+
\\"avgRowsRead\\": 0,
203+
\\"totalRowsRead\\": 10,
204+
\\"avgRowsWritten\\": 0,
205+
\\"totalRowsWritten\\": 0,
206+
\\"avgDurationMs\\": 0,
207+
\\"totalDurationMs\\": 0,
208+
\\"numberOfTimesRun\\": 0,
209+
\\"queryEfficiency\\": 0
210+
}
211+
]"
212+
`);
212213
});
213214
});

0 commit comments

Comments
 (0)