Skip to content

Commit 2f0579b

Browse files
DavidMina96HeshamMegid
authored andcommitted
[MOB-12026] Fix TS Compile Error (#931)
Remove the test dir from being included in tsconfig.json and add a separate tsconfig.test.json for the tests configuration, preserving the old dist structure and providing the required files for the tests to run.
1 parent 2130e1b commit 2f0579b

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Unreleased
2+
3+
- Fixes a TS compilation error due to a broken entry point path.
4+
15
## 11.9.0 (2023-02-20)
26

37
- Bumps Instabug Android SDK to v11.9.0.

jest.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ module.exports = {
1212
modulePathIgnorePatterns: ['example'],
1313
transform: {
1414
'^.+\\.jsx$': 'babel-jest',
15-
'^.+\\.tsx?$': [
16-
'ts-jest',
17-
{
18-
tsconfig: 'tsconfig.json',
19-
},
20-
],
15+
'^.+\\.tsx?$': 'ts-jest',
16+
},
17+
globals: {
18+
'ts-jest': {
19+
tsConfig: 'tsconfig.test.json',
20+
},
2121
},
2222
};

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"include": ["src/**/*", "test/**/*"],
2+
"include": ["src/**/*"],
33
"compilerOptions": {
44
"module": "esnext",
55
"target": "esnext",

tsconfig.test.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["test/**/*"]
4+
}

0 commit comments

Comments
 (0)