Skip to content

Commit

Permalink
Improve GitHub jest logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy-Gonzalez committed Nov 5, 2023
1 parent a9d49e3 commit bc5cd2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
id: cpu-cores
uses: SimenB/github-actions-cpu-cores@v2
- name: Run tests
run: yarn run test --max-workers ${{ steps.cpu-cores.outputs.count }} --reporters github-actions summary
run: yarn run test --max-workers ${{ steps.cpu-cores.outputs.count }}
7 changes: 7 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ const config: Config = {
},
],
},

verbose: true,
};

/* CI specific config */
if (process.env.CI != undefined && process.env.CI != "0" && process.env.CI != "") {
config.reporters = [["github-actions", { silent: false }], "summary"];
}

export default config;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"format": "yarn run prettier --write '**/*.{ts,js,cjs,json}'",
"lint:check": "yarn run eslint src --ext .js,.jsx,.ts,.tsx",
"lint": "yarn run eslint src --ext .js,.jsx,.ts,.tsx --fix",
"test": "jest --verbose",
"test": "jest",
"build": "tsc",
"verify": "yarn build && yarn lint:check && yarn format:check",
"serve": "node scripts/serve.mjs",
Expand Down

0 comments on commit bc5cd2d

Please sign in to comment.