mirror of
https://github.com/wassname/talk.git
synced 2026-07-15 11:26:58 +08:00
25 lines
715 B
JavaScript
25 lines
715 B
JavaScript
module.exports = {
|
|
displayName: "server",
|
|
rootDir: "../../",
|
|
roots: ["<rootDir>/src"],
|
|
collectCoverageFrom: ["**/*.{js,jsx,mjs,ts,tsx}"],
|
|
coveragePathIgnorePatterns: ["/node_modules/"],
|
|
testMatch: ["**/*.spec.{js,jsx,mjs,ts,tsx}"],
|
|
testPathIgnorePatterns: ["/node_modules/", "/client/"],
|
|
testEnvironment: "node",
|
|
testURL: "http://localhost",
|
|
transform: {
|
|
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest",
|
|
},
|
|
moduleNameMapper: {
|
|
"^coral-server/(.*)$": "<rootDir>/src/core/server/$1",
|
|
"^coral-common/(.*)$": "<rootDir>/src/core/common/$1",
|
|
},
|
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
|
globals: {
|
|
"ts-jest": {
|
|
useBabelrc: true,
|
|
},
|
|
},
|
|
};
|