const paths = require("./paths"); module.exports = { rootDir: "../", roots: ["/src", "/scripts"], collectCoverageFrom: ["src/**/*.{js,jsx,mjs,ts,tsx}"], coveragePathIgnorePatterns: ["/node_modules/"], setupFiles: ["/config/polyfills.js"], testMatch: [ "**/__tests__/**/*.{js,jsx,mjs,ts,tsx}", "**/*.(spec|test).{js,jsx,mjs,ts,tsx}", ], testEnvironment: "node", testURL: "http://localhost", transform: { "^.+\\.(js|jsx|mjs|ts|tsx)$": "/node_modules/ts-jest", "^.+\\.css$": "/config/jest/cssTransform.js", "^(?!.*\\.(js|jsx|mjs|css|json|ftl)$)": "/config/jest/fileTransform.js", }, transformIgnorePatterns: [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|ts|tsx)$", ], moduleNameMapper: { "^react-native$": "react-native-web", }, moduleFileExtensions: [ "web.js", "js", "json", "web.jsx", "jsx", "node", "mjs", "ts", "tsx", ], };