From d774dc12ae13b9cb25bd687860e4f5c62cad53fa Mon Sep 17 00:00:00 2001 From: gcattan Date: Tue, 1 Oct 2024 16:04:33 +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 627141e..2d0727d 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 = 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)