File tree 4 files changed +599
-420
lines changed
4 files changed +599
-420
lines changed Original file line number Diff line number Diff line change 50
50
"js-yaml" : " 4.1.0" ,
51
51
"probot" : " 12.4.0" ,
52
52
"shelljs" : " 0.8.5" ,
53
+ "vite-tsconfig-paths" : " 5.1.4" ,
53
54
"yargs" : " 17.7.2"
54
55
},
55
56
"devDependencies" : {
93
94
"smee-client" : " 2.0.2" ,
94
95
"strip-ansi" : " 7.1.0" ,
95
96
"typescript" : " 5.5.4" ,
96
- "vitest" : " 0.34.6 " ,
97
+ "vitest" : " 3.0.9 " ,
97
98
"wrangler" : " 4.2.0"
98
99
},
99
100
"sideEffects" : false ,
Original file line number Diff line number Diff line change 1
1
import jsesc from 'jsesc' ;
2
2
import stripAnsi from 'strip-ansi' ;
3
- import { SpyInstance } from 'vitest' ;
3
+ import type { MockInstance } from 'vitest' ;
4
4
5
5
function nonTTY ( msg : string ) {
6
6
return stripAnsi ( jsesc ( stripAnsi ( msg ) ) ) ;
7
7
}
8
8
9
9
expect . extend ( {
10
- toHaveBeenCalledNormalized ( spy : SpyInstance , expected : string ) {
10
+ toHaveBeenCalledNormalized ( spy : MockInstance , expected : string ) {
11
11
const normalizedExpected = nonTTY ( expected ) ;
12
12
const calls = spy . mock . calls ;
13
13
const contain = calls . some ( args => nonTTY ( args . join ( ' ' ) ) . includes ( normalizedExpected ) ) ;
You can’t perform that action at this time.
0 commit comments