From ecec92c6f49a774ad3c88610806d89c5a87bd2cb Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Thu, 25 Jan 2024 14:44:24 +0000 Subject: [PATCH] chore(): move jest param to jest config --- jest.config.ts | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index 5b406ea..aadee85 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -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", diff --git a/package.json b/package.json index 9aeaf60..67d6e4c 100644 --- a/package.json +++ b/package.json @@ -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",