From 299402d701466a73351d8ea05c3af9d9d654edc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Thu, 15 Feb 2024 10:26:20 +0100 Subject: [PATCH] Fix tests --- .../test/typescript-to-proptypes.test.ts | 4 ++-- .../typescript-to-proptypes/tsconfig.test.json | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 packages-internal/scripts/typescript-to-proptypes/tsconfig.test.json diff --git a/packages-internal/scripts/typescript-to-proptypes/test/typescript-to-proptypes.test.ts b/packages-internal/scripts/typescript-to-proptypes/test/typescript-to-proptypes.test.ts index 35cef6e5576579..769925840e26b8 100644 --- a/packages-internal/scripts/typescript-to-proptypes/test/typescript-to-proptypes.test.ts +++ b/packages-internal/scripts/typescript-to-proptypes/test/typescript-to-proptypes.test.ts @@ -38,8 +38,8 @@ describe('typescript-to-proptypes', () => { const buildProject = createTypeScriptProjectBuilder({ test: { - rootPath: path.join(__dirname, '../..'), - tsConfigPath: 'tsconfig.json', + rootPath: path.join(__dirname, '..'), + tsConfigPath: 'tsconfig.test.json', }, }); diff --git a/packages-internal/scripts/typescript-to-proptypes/tsconfig.test.json b/packages-internal/scripts/typescript-to-proptypes/tsconfig.test.json new file mode 100644 index 00000000000000..d5feab93342396 --- /dev/null +++ b/packages-internal/scripts/typescript-to-proptypes/tsconfig.test.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "noEmit": true, + "moduleResolution": "node", + "types": ["node", "mocha"], + "strict": true, + "esModuleInterop": true, + "isolatedModules": true + }, + "include": ["./src/*.ts", "./test/*.ts"], + "references": [{ "path": "../../docs-utils/tsconfig.build.json" }] +}