mirror of
https://github.com/wassname/talk.git
synced 2026-07-07 15:13:35 +08:00
28 lines
818 B
JavaScript
28 lines
818 B
JavaScript
const path = require("path");
|
|
|
|
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,
|
|
tsConfigFile: path.resolve(__dirname, "../../src/tsconfig.json"),
|
|
},
|
|
},
|
|
};
|