pandorafms/visual_console/jest.config.js
Alejandro Gallardo Escobar c41a3ef570 Visual Console Refactor: minor changes
Former-commit-id: d5ca006db2d07df88f32226dc1f2337cbd3e785c
2019-03-18 12:43:27 +01:00

15 lines
508 B
JavaScript

module.exports = {
roots: ["<rootDir>/src"],
transform: {
"^.+\\.tsx?$": "ts-jest"
},
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
// This configuration is used to mock the css and file imports used by Webpack.
// https://jestjs.io/docs/en/webpack.html
moduleNameMapper: {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/__mocks__/fileMock.js",
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
}
};