From 936227c57f61109612ff4112b01e23e316d474db Mon Sep 17 00:00:00 2001 From: jihwooon Date: Mon, 18 Dec 2023 16:06:44 +0900 Subject: [PATCH] =?UTF-8?q?jest=20clear=EB=A5=BC=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=ED=95=98=EB=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gitaction에서 build 에러가 발생해서 jest clear를 추가했습니다 --- .github/workflows/server-deploy.yml | 3 +++ server/package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/server-deploy.yml b/.github/workflows/server-deploy.yml index 25f6c30..016d8c7 100644 --- a/.github/workflows/server-deploy.yml +++ b/.github/workflows/server-deploy.yml @@ -49,6 +49,9 @@ jobs: if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} run: npm ci + - name: Run Test(Clear) + run: npm run test:clear + - name: Run Test(only Changed) run: npm run test:only-changed diff --git a/server/package.json b/server/package.json index 809d1bd..49ef0de 100644 --- a/server/package.json +++ b/server/package.json @@ -16,6 +16,7 @@ "start:prod": "node dist/main", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "test": "jest", + "test:clear": "jest --clearCache", "test:watch": "jest --watch", "test:cov": "jest --coverage", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",