From 01e4a2079c2788f7eb912b367028399d10e68ca7 Mon Sep 17 00:00:00 2001 From: DavidMina96 Date: Mon, 27 Feb 2023 13:41:49 +0200 Subject: [PATCH 1/3] Remove `test` dir from tsconfig `include` --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index f82fe39c25..e5cb5d59f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "include": ["src/**/*", "test/**/*"], + "include": ["src/**/*"], "compilerOptions": { "module": "esnext", "target": "esnext", From 01b46175da642278686165a19070d3d38b0c08b9 Mon Sep 17 00:00:00 2001 From: DavidMina96 Date: Mon, 27 Feb 2023 15:54:37 +0200 Subject: [PATCH 2/3] Add `tsconfig.test.json` --- jest.config.js | 12 ++++++------ tsconfig.test.json | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 tsconfig.test.json diff --git a/jest.config.js b/jest.config.js index 3624d53958..111db95622 100644 --- a/jest.config.js +++ b/jest.config.js @@ -12,11 +12,11 @@ module.exports = { modulePathIgnorePatterns: ['example'], transform: { '^.+\\.jsx$': 'babel-jest', - '^.+\\.tsx?$': [ - 'ts-jest', - { - tsconfig: 'tsconfig.json', - }, - ], + '^.+\\.tsx?$': 'ts-jest', + }, + globals: { + 'ts-jest': { + tsConfig: 'tsconfig.test.json', + }, }, }; diff --git a/tsconfig.test.json b/tsconfig.test.json new file mode 100644 index 0000000000..63fd9d48de --- /dev/null +++ b/tsconfig.test.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "include": ["test/**/*"] +} From 4315fc4d34552623eebc9300d2511b81f648126f Mon Sep 17 00:00:00 2001 From: DavidMina96 Date: Mon, 27 Feb 2023 15:58:02 +0200 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 517743724d..196eef5efa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## Unreleased + +- Fixes a TS compilation error due to a broken entry point path. + ## 11.9.0 (2023-02-20) - Bumps Instabug Android SDK to v11.9.0.