PromucFlow_constructor/app/rts/jest.config.js
Ayangade Adeoluwa 610509506e
fix: update rts logic to use updated shared AST logic (#16849)
* 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
2022-09-28 17:28:18 +00:00

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,
},
},
};