Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
};
14 changes: 10 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const config: Config = {
// An array of file extensions your modules use
moduleFileExtensions: [
"js",
// "mjs",
"mjs",
// "cjs",
// "jsx",
"ts",
Expand Down Expand Up @@ -187,13 +187,19 @@ const config: Config = {

// A map from regular expressions to paths to transformers
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.m?jsx?$': 'ts-jest',
'^.+\\.tsx?$': ['ts-jest', {
tsconfig: {
ignoreDeprecations: '6.0',
noImplicitAny: false,
types: ['jest', 'node'],
},
}],
'^.+\\.(js|jsx|mjs|cjs)$': 'babel-jest',
},

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

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