Files
unicorn-utterances/jest.config.js
2019-06-13 21:06:11 -07:00

21 lines
694 B
JavaScript

module.exports = {
transform: {
"^.+\\.jsx?$": `<rootDir>/config/jest/jest-preprocess.js`,
},
moduleNameMapper: {
".+\\.(css|styl|less|sass|scss)$": `identity-obj-proxy`,
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": `<rootDir>/__mocks__/file-mock.js`,
},
testPathIgnorePatterns: [`node_modules`, `.cache`],
transformIgnorePatterns: [`node_modules/(?!(gatsby)/)`],
globals: {
__PATH_PREFIX__: ``,
},
setupFiles: [`<rootDir>/config/jest/loadershim.js`],
setupFilesAfterEnv: ["<rootDir>/config/jest/setup-test-env.js"],
watchPlugins: [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
}