Skip to content

Commit 769d914

Browse files
Improve GitHub jest logs (#116)
1 parent a9d49e3 commit 769d914

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ jobs:
5252
id: cpu-cores
5353
uses: SimenB/github-actions-cpu-cores@v2
5454
- name: Run tests
55-
run: yarn run test --max-workers ${{ steps.cpu-cores.outputs.count }} --reporters github-actions summary
55+
run: yarn run test --max-workers ${{ steps.cpu-cores.outputs.count }}

jest.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ const config: Config = {
3535
},
3636
],
3737
},
38+
39+
verbose: true,
3840
};
3941

42+
/* CI specific config */
43+
if (process.env.CI != undefined && process.env.CI != "0" && process.env.CI != "") {
44+
config.reporters = [["github-actions", { silent: false }], "summary"];
45+
}
46+
4047
export default config;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"format": "yarn run prettier --write '**/*.{ts,js,cjs,json}'",
1515
"lint:check": "yarn run eslint src --ext .js,.jsx,.ts,.tsx",
1616
"lint": "yarn run eslint src --ext .js,.jsx,.ts,.tsx --fix",
17-
"test": "jest --verbose",
17+
"test": "jest",
1818
"build": "tsc",
1919
"verify": "yarn build && yarn lint:check && yarn format:check",
2020
"serve": "node scripts/serve.mjs",

0 commit comments

Comments
 (0)