actual/packages/loot-design/jest.config.js
2022-04-28 22:44:38 -04:00

18 lines
519 B
JavaScript

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'
}
};