Skip to content

Commit

Permalink
added tsconfig properte to jest
Browse files Browse the repository at this point in the history
  • Loading branch information
avifenesh committed Mar 18, 2024
1 parent ecb911d commit 6e1fbbc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion node/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ module.exports = {
transform: { "^.+\\.ts?$": "ts-jest" },
testEnvironment: "node",
testRegex: "/tests/.*\\.(test|spec)?\\.(ts|tsx)$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
moduleFileExtensions: [
"ts",
"tsx",
"js",
"jsx",
"json",
"node",
"cjs",
"mjs",
],
testTimeout: 20000,
globals: {
"ts-jest": {
tsconfig: "tsconfig-mjs.json",
},
},
};

0 comments on commit 6e1fbbc

Please sign in to comment.