mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 17:45:56 +08:00
39 lines
985 B
JavaScript
39 lines
985 B
JavaScript
const paths = require("./paths");
|
|
|
|
module.exports = {
|
|
rootDir: "../",
|
|
roots: ["<rootDir>/src", "<rootDir>/scripts"],
|
|
collectCoverageFrom: ["src/**/*.{js,jsx,mjs,ts,tsx}"],
|
|
coveragePathIgnorePatterns: ["/node_modules/"],
|
|
setupFiles: ["<rootDir>/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)$": "<rootDir>/node_modules/ts-jest",
|
|
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
"^(?!.*\\.(js|jsx|mjs|css|json|ftl)$)":
|
|
"<rootDir>/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",
|
|
],
|
|
};
|