Skip to content

Commit

Permalink
Merge pull request #930 from hashicorp/use-ts-in-jest
Browse files Browse the repository at this point in the history
refactor(lib): use the same jest config everywhere
  • Loading branch information
skorfmann authored Aug 26, 2021
2 parents a8692c7 + d3374d3 commit 7e0593a
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 263 deletions.
4 changes: 2 additions & 2 deletions packages/cdktf-cli/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
"roots": [
roots: [
"<rootDir>"
],
testMatch: ['**/*.test.ts', '**/*.test.tsx'],
"transform": {
transform: {
"^.+\\.tsx?$": "ts-jest"
},
moduleFileExtensions: [
Expand Down

This file was deleted.

16 changes: 16 additions & 0 deletions packages/cdktf/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
roots: [
"<rootDir>"
],
collectCoverage: true,
testMatch: ['**/*.test.ts', '**/*.test.tsx'],
transform: {
"^.+\\.tsx?$": "ts-jest"
},
moduleFileExtensions: [
"js",
"ts",
"tsx"
],
}

6 changes: 0 additions & 6 deletions packages/cdktf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@
"json-schema-to-typescript": "^8.0.1",
"typescript": "^3.9.7"
},
"jest": {
"collectCoverage": true,
"moduleFileExtensions": [
"js"
]
},
"dependencies": {
"archiver": "5.3.0"
},
Expand Down

0 comments on commit 7e0593a

Please sign in to comment.