Skip to content

Commit 9105203

Browse files
chore(deps): update dependency vitest to v3 (#2756)
* chore(deps): update dependency vitest to v3 * Go --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent 072b739 commit 9105203

File tree

4 files changed

+599
-420
lines changed

4 files changed

+599
-420
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"js-yaml": "4.1.0",
5151
"probot": "12.4.0",
5252
"shelljs": "0.8.5",
53+
"vite-tsconfig-paths": "5.1.4",
5354
"yargs": "17.7.2"
5455
},
5556
"devDependencies": {
@@ -93,7 +94,7 @@
9394
"smee-client": "2.0.2",
9495
"strip-ansi": "7.1.0",
9596
"typescript": "5.5.4",
96-
"vitest": "0.34.6",
97+
"vitest": "3.0.9",
9798
"wrangler": "4.2.0"
9899
},
99100
"sideEffects": false,

packages/testing/src/setup-file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import jsesc from 'jsesc';
22
import stripAnsi from 'strip-ansi';
3-
import { SpyInstance } from 'vitest';
3+
import type { MockInstance } from 'vitest';
44

55
function nonTTY(msg: string) {
66
return stripAnsi(jsesc(stripAnsi(msg)));
77
}
88

99
expect.extend({
10-
toHaveBeenCalledNormalized(spy: SpyInstance, expected: string) {
10+
toHaveBeenCalledNormalized(spy: MockInstance, expected: string) {
1111
const normalizedExpected = nonTTY(expected);
1212
const calls = spy.mock.calls;
1313
const contain = calls.some(args => nonTTY(args.join(' ')).includes(normalizedExpected));

0 commit comments

Comments
 (0)