Skip to content

The open alternative to Salesforce, designed for AI.

Add a concise test report with just the errors (#4220)

gitstart-twentya7733b24dfe3
diff --git a/packages/twenty-front/jest.config.ts b/packages/twenty-front/jest.config.ts
index 70b145e3d91..77e9ca3575a 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: ['<rootDir>/src/**/*.ts'],
coveragePathIgnorePatterns: [
'states/.+State.ts$',
diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.json
index 99a403fcaca..09d02112541 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 59b1f41e82f..53d10fd3ec7 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',