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;
|
const isReactNative = process.env.REACT_APP_IS_REACT_NATIVE;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
preset: 'ts-jest/presets/js-with-ts-esm',
|
||||||
moduleFileExtensions: ['testing.js', 'electron.js']
|
moduleFileExtensions: ['testing.js', 'electron.js']
|
||||||
.concat(isReactNative ? ['ios.js', 'mobile.js'] : [])
|
.concat(isReactNative ? ['ios.js', 'mobile.js'] : [])
|
||||||
.concat(['mjs', 'js', 'ts', 'json']),
|
.concat(['mjs', 'js', 'ts', 'json']),
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
preset: 'ts-jest/presets/js-with-ts-esm',
|
||||||
moduleFileExtensions: ['testing.js', 'web.js', 'mjs', 'js', 'ts', 'json'],
|
moduleFileExtensions: ['testing.js', 'web.js', 'mjs', 'js', 'ts', 'json'],
|
||||||
testEnvironment: 'jsdom',
|
testEnvironment: 'jsdom',
|
||||||
testPathIgnorePatterns: ['/node_modules/', '/lib/'].filter(Boolean),
|
testPathIgnorePatterns: ['/node_modules/', '/lib/'].filter(Boolean),
|
||||||
|
|
Loading…
Reference in a new issue