File tree Expand file tree Collapse file tree 4 files changed +599
-420
lines changed Expand file tree Collapse file tree 4 files changed +599
-420
lines changed Original file line number Diff line number Diff line change 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" : {
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 ,
Original file line number Diff line number Diff line change 11import jsesc from 'jsesc' ;
22import stripAnsi from 'strip-ansi' ;
3- import { SpyInstance } from 'vitest' ;
3+ import type { MockInstance } from 'vitest' ;
44
55function nonTTY ( msg : string ) {
66 return stripAnsi ( jsesc ( stripAnsi ( msg ) ) ) ;
77}
88
99expect . 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 ) ) ;
You can’t perform that action at this time.
0 commit comments