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.{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: { "^talk-admin/(.*)$": "/src/core/client/admin/$1", "^talk-ui/(.*)$": "/src/core/client/ui/$1", "^talk-stream/(.*)$": "/src/core/client/stream/$1", "^talk-framework/(.*)$": "/src/core/client/framework/$1", "^talk-common/(.*)$": "/src/core/common/$1", "^talk-server/(.*)$": "/src/core/server/$1", }, moduleFileExtensions: [ "web.js", "js", "json", "web.jsx", "jsx", "node", "mjs", "ts", "tsx", ], };