Skip to content

Commit 9338f9d

Browse files
Update dependencies
1 parent 50b9beb commit 9338f9d

5 files changed

Lines changed: 1752 additions & 181 deletions

File tree

babel.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env',
5+
{
6+
targets: {
7+
node: 'current',
8+
},
9+
},
10+
],
11+
],
12+
};

jest.config.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const config: Config = {
8989
// An array of file extensions your modules use
9090
moduleFileExtensions: [
9191
"js",
92-
// "mjs",
92+
"mjs",
9393
// "cjs",
9494
// "jsx",
9595
"ts",
@@ -187,13 +187,19 @@ const config: Config = {
187187

188188
// A map from regular expressions to paths to transformers
189189
transform: {
190-
'^.+\\.tsx?$': 'ts-jest',
191-
'^.+\\.m?jsx?$': 'ts-jest',
190+
'^.+\\.tsx?$': ['ts-jest', {
191+
tsconfig: {
192+
ignoreDeprecations: '6.0',
193+
noImplicitAny: false,
194+
types: ['jest', 'node'],
195+
},
196+
}],
197+
'^.+\\.(js|jsx|mjs|cjs)$': 'babel-jest',
192198
},
193199

194200
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
195201
transformIgnorePatterns: [
196-
'node_modules/(?!(msw|@mswjs|@bundled-es-modules|until-async|strict-event-emitter|@open-draft)/)'
202+
'node_modules/(?!(@mswjs|msw|@bundled-es-modules|until-async|strict-event-emitter|@open-draft|rettime|outvariant|event-interceptor))',
197203
],
198204

199205
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them

0 commit comments

Comments
 (0)