diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 776281ce..0728d066 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/jest.config.ts b/jest.config.ts index 8920791d..ef27f19e 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -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; diff --git a/package.json b/package.json index 4a4367f7..8cc1845e 100644 --- a/package.json +++ b/package.json @@ -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",