From f908ce094f06ead82591755f3ff3b94893251cbe Mon Sep 17 00:00:00 2001 From: chimurai <655241+chimurai@users.noreply.github.com> Date: Thu, 26 May 2022 23:13:52 +0200 Subject: [PATCH] ci(jest): add github-actions reporter --- .github/workflows/ci.yml | 2 +- package.json | 4 ++-- yarn.lock | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e88f8e4..504fd09 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,7 @@ jobs: run: yarn build - name: yarn test - run: yarn test + run: yarn test --reporters="default" --reporters="github-actions" env: CI: true diff --git a/package.json b/package.json index 488050b..9613a16 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "lint": "prettier --check \"**/*.{js,ts,md}\" || echo '🔧 Run: \"npm run lint:fix\" to fix issues'", "lint:fix": "prettier --write \"**/*.{js,ts,md}\"", "test": "NODE_OPTIONS=--experimental-vm-modules jest", - "coverage": "NODE_OPTIONS=--experimental-vm-modules jest --coverage --coverageReporters=lcov", + "coverage": "NODE_OPTIONS=--experimental-vm-modules jest --coverage", "prepare": "husky install", "prepack": "yarn clean && yarn test && yarn build", "gitignore:update": "curl -L https://www.toptal.com/developers/gitignore/api/node --silent > .temp && cat tools/dotgitignore | cat - .temp > .gitignore && rm .temp" @@ -62,7 +62,7 @@ "jest": "28.1.0", "lint-staged": "12.4.1", "prettier": "2.6.2", - "ts-jest": "28.0.2", + "ts-jest": "28.0.3", "ts-node": "10.7.0", "typescript": "4.6.4" } diff --git a/yarn.lock b/yarn.lock index 29eebdd..627f945 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1838,7 +1838,7 @@ json-schema-traverse@^1.0.0: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== -json5@2.x, json5@^2.2.1: +json5@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== @@ -2481,15 +2481,15 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -ts-jest@28.0.2: - version "28.0.2" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-28.0.2.tgz#e4026357006731f96a033b94db89d01e0d3c0591" - integrity sha512-IOZMb3D0gx6IHO9ywPgiQxJ3Zl4ECylEFwoVpENB55aTn5sdO0Ptyx/7noNBxAaUff708RqQL4XBNxxOVjY0vQ== +ts-jest@28.0.3: + version "28.0.3" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-28.0.3.tgz#d1c47f167e56eef3989bb51afaf7fc1c87a04c52" + integrity sha512-HzgbEDQ2KgVtDmpXToqAcKTyGHdHsG23i/iUjfxji92G5eT09S1m9UHZd7csF0Bfgh9txM4JzwHnv7r1waFPlw== dependencies: bs-logger "0.x" fast-json-stable-stringify "2.x" jest-util "^28.0.0" - json5 "2.x" + json5 "^2.2.1" lodash.memoize "4.x" make-error "1.x" semver "7.x"