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

* Add a concise test report with just the errors

Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev>

* Refactor according to review

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev>

* Add a concise test report

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev>

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
This commit is contained in:
gitstart-twenty 2024-03-05 13:43:31 -03:00 committed by GitHub
parent 6bb7042a68
commit a7733b24df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View File

@ -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$',

View File

@ -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",

View File

@ -1,4 +1,6 @@
module.exports = {
// to enable logs, comment out the following line
silent: true,
clearMocks: true,
preset: 'ts-jest',
testEnvironment: 'node',