Skip to content

Commit 41c763b

Browse files
committed
chore(ci): fix some settings for jest
1 parent 53261aa commit 41c763b

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

packages/core/postgrest-js/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"declarationMap": true,
88
"module": "CommonJS",
99
"outDir": "dist/cjs",
10+
"rootDir": "src",
1011
"sourceMap": true,
1112
"target": "ES2017",
1213

packages/core/postgrest-js/tsconfig.test.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"strictNullChecks": true,
88
"skipLibCheck": true,
99
"module": "ES2022",
10-
"target": "ES2022"
10+
"target": "ES2022",
11+
"rootDir": "."
1112
}
1213
}

packages/core/storage-js/jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ module.exports = {
1111
'!**/vendor/**',
1212
'!**/vendor/**',
1313
],
14+
globals: {
15+
'ts-jest': {
16+
tsconfig: 'tsconfig.test.json',
17+
},
18+
},
1419
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src", "test"],
4+
"compilerOptions": {
5+
"rootDir": "."
6+
}
7+
}

0 commit comments

Comments
 (0)