Skip to content

Commit 6f67608

Browse files
committed
Fix types
1 parent a0153e0 commit 6f67608

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tests/ast-alignment.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

tests/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
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
}

0 commit comments

Comments
 (0)