* update rts logic to use updated shared AST logic * Make changes to naming conventions * Add test cases for RTS and rename ast functions * Add running jest test to RTS workflow * Install dependencies and then trigger jest tests in workflow * Close server connection after test ends * Remove logs * Improve jest test descriptions
24 lines
758 B
JavaScript
24 lines
758 B
JavaScript
module.exports = {
|
|
roots: ["<rootDir>/src"],
|
|
transform: {
|
|
"^.+\\.(png|js|ts|tsx)$": "ts-jest",
|
|
},
|
|
testTimeout: 9000,
|
|
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(tsx|ts|js)?$",
|
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", "css"],
|
|
moduleDirectories: ["node_modules", "src", "test"],
|
|
moduleNameMapper: {
|
|
"@constants/(.*)": ["<rootDir>/src/constants/$1"],
|
|
"@services/(.*)": ["<rootDir>/src/services/$1"],
|
|
"@middlewares/(.*)": ["<rootDir>/src/middlewares/$1"],
|
|
"@controllers/(.*)": ["<rootDir>/src/controllers/$1"],
|
|
"@rules/(.*)": ["<rootDir>/src/middlewares/rules/$1"],
|
|
"@utils/(.*)": ["<rootDir>/src/utils/$1"],
|
|
},
|
|
globals: {
|
|
"ts-jest": {
|
|
isolatedModules: true,
|
|
},
|
|
},
|
|
};
|