Skip to content

Commit 0cb455f

Browse files
committed
test: fix deprecation
1 parent 5775bc6 commit 0cb455f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

jest.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
module.exports = {
22
preset: 'ts-jest',
3-
globals: {
4-
'ts-jest': {
5-
babelConfig: true,
6-
},
3+
transform: {
4+
'^.+.[t]sx?$': [
5+
'ts-jest',
6+
{
7+
babelConfig: true,
8+
},
9+
],
710
},
811
testEnvironment: 'node',
912
transformIgnorePatterns: ['/node_modules/(?!@babel/runtime)', 'dist'],

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"emitDeclarationOnly": true,
88
"declaration": true,
99
"allowJs": true,
10+
"esModuleInterop": true,
1011
"declarationDir": "dist/@types"
1112
},
1213
"include": ["src"],

0 commit comments

Comments
 (0)