From 9ed724fa530b7f4e69ff17274958962f038c42cf Mon Sep 17 00:00:00 2001 From: gcattan Date: Tue, 1 Oct 2024 15:57:49 +0200 Subject: [PATCH] Update types.spec.js --- __test__/types.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)