Files
talk/config/jest-server.config.js
T
KiwiandWyatt Johnson cac0afa61e [next] Support server side jest testing (#1747)
* Support server side jest testing

* feat: more tests
2018-07-13 16:57:25 +00:00

20 lines
644 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: {
"^talk-server/(.*)$": "<rootDir>/src/core/server/$1",
"^talk-common/(.*)$": "<rootDir>/src/core/common/$1",
},
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
};