module.exports = { "testEnvironment": "jest-environment-jsdom-fifteen", "testEnvironmentOptions": { "enzymeAdapter": "react16", }, "globals": { "ts-jest": { "babelConfig": false, }, }, "modulePathIgnorePatterns": [ "/vendor", // don't go to the gems vendor folder. EVER. ], "setupFiles": [ "/setupTests.js", ], "transform": { "^.+\\.tsx?$": "ts-jest", }, "testPathIgnorePatterns": [ "/node_modules/", "/config/webpack/test.js", "/vendor/", ], "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node", ], "snapshotSerializers": [ "enzyme-to-json/serializer", ], "moduleNameMapper": { "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/app/javascript/__mocks__/fileMock.js", "\\./regenerate.js": "/app/javascript/__mocks__/erbMock.js", }, };