From c78449683241496b903e01b143093f07c42c7e4c Mon Sep 17 00:00:00 2001 From: Ryan Chia Date: Sun, 10 Nov 2024 21:00:52 +0800 Subject: [PATCH] asd --- .github/workflows/test.yml | 9 +++++++-- apps/frontend/package.json | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bd7a397336..1d8036ba25 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -83,7 +83,7 @@ jobs: - name: Run tests run: | cd ./apps/frontend - pnpm test -- __tests__/unit-tests + pnpm unit-test browser-test: runs-on: ubuntu-latest @@ -259,6 +259,11 @@ jobs: with: version: 9.1.4 + - name: Install dependencies + run: | + cd ./apps/frontend + pnpm i -D + - name: Install Chrome WebDriver uses: nanasess/setup-chromedriver@v2 with: @@ -267,4 +272,4 @@ jobs: - name: Run Browser Test run: | cd ./apps/frontend - pnpm test -- ./__tests__/browser-tests + pnpm browser-test diff --git a/apps/frontend/package.json b/apps/frontend/package.json index 34cedd361d..bab7a93c21 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -7,7 +7,9 @@ "build": "next build", "start": "next start", "lint": "next lint", - "test": "jest" + "test": "jest", + "unit-test": "jest __tests__/unit-tests", + "browser-test": "jest __tests__/browser-tests" }, "dependencies": { "@ant-design/icons": "^5.5.1",