Skip to content

Commit

Permalink
chore(): move jest param to jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosiebler committed Jan 25, 2024
1 parent 7fcf4b0 commit ecec92c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const config: Config = {
// Indicates which provider should be used to instrument code for coverage
coverageProvider: 'v8',

detectOpenHandles: true,

// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
// "json",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"index.js"
],
"scripts": {
"test": "jest --detectOpenHandles",
"test:watch": "jest --detectOpenHandles --watch",
"test": "jest",
"test:watch": "jest --watch",
"clean": "rimraf lib dist",
"build": "tsc --project tsconfig.build.json",
"build:clean": "npm run clean && npm run build",
Expand Down

0 comments on commit ecec92c

Please sign in to comment.