File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ describe.each([
1818] ) ( '' , ( parseType : ParseType , input : string ) => {
1919 if ( parseType & ParseType . Binding ) {
2020 test ( `${ ParseType [ ParseType . Binding ] } : ${ JSON . stringify ( input ) } ` , ( ) => {
21- expect ( massageAst ( parseBinding ( input ) ) ) . toEqual (
22- massageAst ( parseBabelExpression ( input ) ) ,
21+ expect ( massageAst ( parseBinding ( input ) , 'angular' ) ) . toEqual (
22+ massageAst ( parseBabelExpression ( input ) , 'babel' ) ,
2323 ) ;
2424 } ) ;
2525 }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export function parseBabel(input: string) {
3737 return fixBabelCommentsRange ( babelParser . parse ( input , babelParserOptions ) ) ;
3838}
3939
40- export function massageAst ( ast : any , parser ) : any {
40+ export function massageAst ( ast : any , parser : 'babel' | 'angular' ) : any {
4141 if ( ! ast || typeof ast !== 'object' ) {
4242 return ast ;
4343 }
Original file line number Diff line number Diff line change 77 "module" : " NodeNext" ,
88 "esModuleInterop" : true ,
99 "skipLibCheck" : true ,
10- "types" : [" vitest/globals" ]
10+ "types" : [" vitest/globals" ],
11+ "noEmit" : true
1112 },
1213 "include" : [" src/**/*.ts" , " tests/**/*.ts" , " vitest.config.ts" ]
1314}
You can’t perform that action at this time.
0 commit comments