Skip to content

Commit

Permalink
fix(core): Resolve jest test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Nov 13, 2022
1 parent ab1e729 commit c41c38d
Show file tree
Hide file tree
Showing 7 changed files with 562 additions and 84 deletions.
3 changes: 2 additions & 1 deletion libs/core/typescript/utilities/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"typeRoots": ["../../../../node_modules/@types", "./@types"]
"typeRoots": ["../../../../node_modules/@types", "./@types"],
"types": ["jest", "node"]
},
"files": [],
"include": [],
Expand Down
14 changes: 12 additions & 2 deletions libs/core/typescript/utilities/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
"declaration": true,
"types": ["node"]
},
"include": ["**/*.ts"],
"exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"]
"exclude": [
"jest.config.ts",
"**/*.spec.ts",
"**/*.test.ts",
"**/*.spec.tsx",
"**/*.test.tsx",
"**/*.spec.js",
"**/*.test.js",
"**/*.spec.jsx",
"**/*.test.jsx"
],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
}
13 changes: 12 additions & 1 deletion libs/core/typescript/utilities/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,16 @@
"module": "commonjs",
"types": ["jest", "node"]
},
"include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
"include": [
"jest.config.ts",
"**/*.test.ts",
"**/*.spec.ts",
"**/*.test.tsx",
"**/*.spec.tsx",
"**/*.test.js",
"**/*.spec.js",
"**/*.test.jsx",
"**/*.spec.jsx",
"**/*.d.ts"
]
}
Loading

0 comments on commit c41c38d

Please sign in to comment.