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 9ed724f commit d774dc1
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 = ts.parseJsonSourceFileConfigFileContent({ noEmit: true, jsx: 'react' });
const options = { noEmit: true, jsx: ts.JsxEmit.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 d774dc1

Please sign in to comment.