Skip to content

Commit

Permalink
Update types.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gcattan authored Oct 1, 2024
1 parent dc00738 commit 9ed724f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __test__/types.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ beforeEach(() => {
describe('types', () => {
it('can diagnose types without errors', () => {
const files = [path.join(__dirname, '/types-test')];
const options = { noEmit: true, jsx: 'react-jsx' };
const options = ts.parseJsonSourceFileConfigFileContent({ noEmit: true, jsx: 'react' });
const program = ts.createProgram(files, options);
const diagnosticErrors = ts.getPreEmitDiagnostics(program)
.filter((diagnostic) => diagnostic.category === ts.DiagnosticCategory.Error)
Expand Down

0 comments on commit 9ed724f

Please sign in to comment.