app/jest.server.config.json
{
"workerIdleMemoryLimit": 0.2,
"displayName": "Server",
"testMatch": ["**/app/api/**/specs/*spec.(j|t)s?(x)", "**/app/shared/**/specs/*spec.(j|t)s?(x)"],
"testEnvironment": "node",
"setupFilesAfterEnv": ["<rootDir>/setUpJestServer.js"],
"snapshotFormat": {
"escapeString": true,
"printBasicPrototype": true
},
"fakeTimers": {
"legacyFakeTimers": true
},
"transform": {
"\\.[jt]sx?$": ["babel-jest", { "rootMode": "upward" }]
},
"moduleNameMapper": {
"^api/(.*)": "<rootDir>/api/$1",
"^shared/(.*)": "<rootDir>/shared/$1",
"^uuid$": "<rootDir>/../node_modules/uuid/dist/index.js"
}
}