actual/packages/loot-design/jest.config.js

19 lines
519 B
JavaScript
Raw Normal View History

2022-04-29 02:44:38 +00:00
module.exports = {
moduleFileExtensions: ['testing.js', 'web.js', 'mjs', 'js', 'json'],
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/src/setupTests.js'],
transform: {
'.*': '<rootDir>/../../jest-babel-transformer'
},
testPathIgnorePatterns: [
'/node_modules/',
'/lib/',
'/src/components/mobile/'
],
moduleNameMapper: {
'^react-native$': 'react-native-web',
'^.+\\.(css|sass|scss)$': 'identity-obj-proxy',
'^.+\\.(png)$': '<rootDir>/__mocks__/fileMock.js'
}
};