fix: add ts-jest presets which are equivalent to the old transform
properties
This commit is contained in:
parent
2cedd68e69
commit
3118cf26e3
2 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
const isReactNative = process.env.REACT_APP_IS_REACT_NATIVE;
|
||||
|
||||
module.exports = {
|
||||
preset: 'ts-jest/presets/js-with-ts-esm',
|
||||
moduleFileExtensions: ['testing.js', 'electron.js']
|
||||
.concat(isReactNative ? ['ios.js', 'mobile.js'] : [])
|
||||
.concat(['mjs', 'js', 'ts', 'json']),
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
module.exports = {
|
||||
preset: 'ts-jest/presets/js-with-ts-esm',
|
||||
moduleFileExtensions: ['testing.js', 'web.js', 'mjs', 'js', 'ts', 'json'],
|
||||
testEnvironment: 'jsdom',
|
||||
testPathIgnorePatterns: ['/node_modules/', '/lib/'].filter(Boolean),
|
||||
|
|
Loading…
Reference in a new issue