File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,19 @@ const config: Config = {
23
23
collectCoverageFrom : [ "<rootDir>/src/**/*.{js,ts}" ] ,
24
24
coverageReporters : [ "text-summary" , "lcov" ] ,
25
25
testResultsProcessor : "@casualbot/jest-sonar-reporter" ,
26
+
27
+ // Always print out a summary if there are any failing tests. Normally
28
+ // a summary is only printed if there are more than 20 test *suites*.
29
+ reporters : [ [ "default" , { summaryThreshold : 0 } ] ] ,
26
30
} ;
27
31
28
32
// if we're running under GHA, enable the GHA reporter
29
33
if ( env [ "GITHUB_ACTIONS" ] !== undefined ) {
30
- const reporters : Config [ "reporters" ] = [ [ "github-actions" , { silent : false } ] , "summary" ] ;
34
+ const reporters : Config [ "reporters" ] = [
35
+ [ "github-actions" , { silent : false } ] ,
36
+ // as above: always show a summary if there were any failing tests.
37
+ [ "summary" , { summaryThreshold : 0 } ] ,
38
+ ] ;
31
39
32
40
// if we're running against the develop branch, also enable the slow test reporter
33
41
if ( env [ "GITHUB_REF" ] == "refs/heads/develop" ) {
You can’t perform that action at this time.
0 commit comments