Skip to content

Commit afcb64f

Browse files
committed
Ignore TS errors in tests
1 parent 333b6fe commit afcb64f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

napi/parser/test/parse.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,16 +687,22 @@ describe('parse', () => {
687687
it('should include range when true', () => {
688688
const ret = parseSync('test.js', '(x)', { range: true });
689689
expect(ret.program.body[0].start).toBe(0);
690+
// TODO: Remove `@ts-ignore` comment once we've corrected TS type definitions
691+
// @ts-ignore
690692
expect(ret.program.body[0].range).toEqual([0, 3]);
691693
});
692694

693695
it('should not include range when false', () => {
694696
const ret = parseSync('test.js', '(x)', { range: false });
697+
// TODO: Remove `@ts-ignore` comment once we've corrected TS type definitions
698+
// @ts-ignore
695699
expect(ret.program.body[0].range).toBeUndefined();
696700
});
697701

698702
it('should include range by default', () => {
699703
const ret = parseSync('test.js', '(x)');
704+
// TODO: Remove `@ts-ignore` comment once we've corrected TS type definitions
705+
// @ts-ignore
700706
expect(ret.program.body[0].range).toBeUndefined();
701707
});
702708
});

0 commit comments

Comments
 (0)