diff --git a/__test__/types.spec.js b/__test__/types.spec.js index 432283b..627141e 100644 --- a/__test__/types.spec.js +++ b/__test__/types.spec.js @@ -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)