Skip to content

Commit 7fa2851

Browse files
committed
chore: Update Jest configuration to use ts-jest preset and add coverage directory to .gitignore
1 parent 3a91f72 commit 7fa2851

File tree

4 files changed

+85
-3
lines changed

4 files changed

+85
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules/
1+
node_modules/
2+
coverage/

jest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const config: Config = {
102102
// notifyMode: "failure-change",
103103

104104
// A preset that is used as a base for Jest's configuration
105-
// preset: undefined,
105+
preset: "ts-jest",
106106

107107
// Run tests from one or more projects
108108
// projects: undefined,
@@ -146,7 +146,7 @@ const config: Config = {
146146
// snapshotSerializers: [],
147147

148148
// The test environment that will be used for testing
149-
// testEnvironment: "jest-environment-node",
149+
testEnvironment: "node",
150150

151151
// Options that will be passed to the testEnvironment
152152
// testEnvironmentOptions: {},

package-lock.json

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
},
99
"author": "Loiane Groner",
1010
"devDependencies": {
11+
"@jest/globals": "^29.7.0",
1112
"jest": "^29.7.0",
13+
"ts-jest": "^29.1.3",
1214
"ts-node": "^10.9.2",
1315
"typescript": "^5.4.5"
1416
}

0 commit comments

Comments
 (0)