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
3 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,6 @@
export default { export default {
// to enable logs, comment out the following line
silent: true,
setupFilesAfterEnv: ['./src/setupTests.ts'], setupFilesAfterEnv: ['./src/setupTests.ts'],
testEnvironment: 'jsdom', testEnvironment: 'jsdom',
transform: { transform: {
@ -19,7 +21,6 @@ export default {
functions: 60, functions: 60,
}, },
}, },
collectCoverage: true,
collectCoverageFrom: ['<rootDir>/src/**/*.ts'], collectCoverageFrom: ['<rootDir>/src/**/*.ts'],
coveragePathIgnorePatterns: [ coveragePathIgnorePatterns: [
'states/.+State.ts$', 'states/.+State.ts$',

View File

@ -18,7 +18,7 @@
"fmt:fix": "prettier --cache --write \"src/**/*.ts\" \"src/**/*.tsx\"", "fmt:fix": "prettier --cache --write \"src/**/*.ts\" \"src/**/*.tsx\"",
"fmt": "prettier --check \"src/**/*.ts\" \"src/**/*.tsx\"", "fmt": "prettier --check \"src/**/*.ts\" \"src/**/*.tsx\"",
"test": "jest", "test": "jest",
"test-watch": "jest --coverage=false --watch", "test-watch": "jest --watch",
"tsup": "tsup", "tsup": "tsup",
"coverage": "jest --coverage", "coverage": "jest --coverage",
"storybook:modules:dev": "STORYBOOK_SCOPE=modules yarn storybook:dev", "storybook:modules:dev": "STORYBOOK_SCOPE=modules yarn storybook:dev",

View File

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