module.exports = { roots: ["/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)$": "/__mocks__/fileMock.js", "\\.(css|less)$": "/__mocks__/styleMock.js" } };