const path = require("path"); module.exports = { displayName: "client", rootDir: "../../", roots: ["/src/core/client"], collectCoverageFrom: ["**/*.{js,jsx,mjs,ts,tsx}"], coveragePathIgnorePatterns: ["/node_modules/"], setupFiles: [ "/src/core/build/polyfills.js", "/src/core/client/test/setup.ts", ], setupTestFrameworkScriptFile: "/src/core/client/test/setupTestFramework.ts", testMatch: ["**/*.spec.{js,jsx,mjs,ts,tsx}"], testEnvironment: "node", testURL: "http://localhost", transform: { "^.+\\.tsx?$": "/node_modules/ts-jest", "^.+\\.css$": "/config/jest/cssTransform.js", "^.+\\.ftl$": "/config/jest/contentTransform.js", "^(?!.*\\.(js|jsx|mjs|ts|tsx|css|json|ftl)$)": "/config/jest/fileTransform.js", }, transformIgnorePatterns: [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|ts|tsx)$", ], moduleNameMapper: { "^talk-admin/(.*)$": "/src/core/client/admin/$1", "^talk-auth/(.*)$": "/src/core/client/auth/$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", }, moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", "ftl"], snapshotSerializers: ["enzyme-to-json/serializer"], globals: { "ts-jest": { useBabelrc: true, tsConfigFile: path.resolve(__dirname, "tsconfig.jest.json"), }, }, };