Skip to content

Commit ae16c2a

Browse files
committed
Update for typescript v6
1 parent f9ac26e commit ae16c2a

4 files changed

Lines changed: 19 additions & 3 deletions

File tree

e2e/ts/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"esModuleInterop": true,
4+
"module": "commonjs",
5+
"strict": true,
6+
"target": "es6"
7+
}
8+
}

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
},
1010
roots: ['<rootDir>/src'],
1111
transform: {
12-
'^.+\\.tsx?$': 'ts-jest',
12+
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
1313
},
1414
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
1515
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
33
"allowUnreachableCode": true,
4-
"baseUrl": ".",
54
"allowJs": false,
65
"declaration": true,
76
"esModuleInterop": true,
8-
"lib": ["es2015", "es2016", "es2017"],
7+
"lib": ["es2022"],
8+
"types": ["node"],
99
"module": "commonjs",
1010
"outDir": "dist",
1111
"pretty": true,

tsconfig.test.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"types": ["jest", "node"]
5+
},
6+
"include": ["src"],
7+
"exclude": []
8+
}

0 commit comments

Comments
 (0)