From a7733b24dfe3516290ee7963d7febf7db8f1dee9 Mon Sep 17 00:00:00 2001 From: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:43:31 -0300 Subject: [PATCH] Add a concise test report with just the errors (#4220) * Add a concise test report with just the errors Co-authored-by: KlingerMatheus * Refactor according to review Co-authored-by: v1b3m Co-authored-by: KlingerMatheus * Add a concise test report Co-authored-by: v1b3m Co-authored-by: KlingerMatheus --------- Co-authored-by: gitstart-twenty Co-authored-by: KlingerMatheus Co-authored-by: v1b3m --- packages/twenty-front/jest.config.ts | 3 ++- packages/twenty-front/package.json | 2 +- packages/twenty-server/jest.config.ts | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/jest.config.ts b/packages/twenty-front/jest.config.ts index 70b145e3d9..77e9ca3575 100644 --- a/packages/twenty-front/jest.config.ts +++ b/packages/twenty-front/jest.config.ts @@ -1,4 +1,6 @@ export default { + // to enable logs, comment out the following line + silent: true, setupFilesAfterEnv: ['./src/setupTests.ts'], testEnvironment: 'jsdom', transform: { @@ -19,7 +21,6 @@ export default { functions: 60, }, }, - collectCoverage: true, collectCoverageFrom: ['/src/**/*.ts'], coveragePathIgnorePatterns: [ 'states/.+State.ts$', diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.json index 99a403fcac..09d0211254 100644 --- a/packages/twenty-front/package.json +++ b/packages/twenty-front/package.json @@ -18,7 +18,7 @@ "fmt:fix": "prettier --cache --write \"src/**/*.ts\" \"src/**/*.tsx\"", "fmt": "prettier --check \"src/**/*.ts\" \"src/**/*.tsx\"", "test": "jest", - "test-watch": "jest --coverage=false --watch", + "test-watch": "jest --watch", "tsup": "tsup", "coverage": "jest --coverage", "storybook:modules:dev": "STORYBOOK_SCOPE=modules yarn storybook:dev", diff --git a/packages/twenty-server/jest.config.ts b/packages/twenty-server/jest.config.ts index 59b1f41e82..53d10fd3ec 100644 --- a/packages/twenty-server/jest.config.ts +++ b/packages/twenty-server/jest.config.ts @@ -1,4 +1,6 @@ module.exports = { + // to enable logs, comment out the following line + silent: true, clearMocks: true, preset: 'ts-jest', testEnvironment: 'node',