From b86f43e75f9046049fc2de3adcbb272798b0f117 Mon Sep 17 00:00:00 2001 From: Nandor_Czegledi Date: Tue, 26 Nov 2024 16:51:47 +0100 Subject: [PATCH] chore(ui-codemods): fix codemods test scripts Closes: INSTUI-4373 --- .github/workflows/pr-validation.yml | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index a9c3ddff2a..cd7f3a3b2d 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -35,6 +35,8 @@ jobs: run: npm run bootstrap - name: Run vitest unit tests run: npm run test:vitest + - name: Run codemods unit tests + run: npm run test:codemods cypress: name: Cypress component tests runs-on: ubuntu-latest diff --git a/package.json b/package.json index 928f135310..dac6d08b20 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,9 @@ "dev": "npm run start:watch", "test": "ui-scripts test --randomize", "cy:component": "cypress run --component", - "test:vitest": "vitest --watch=false && npm run test:vitest --workspace=@instructure/ui-codemods", + "test:vitest": "vitest --watch=false", "test:vitest-watch": "vitest", + "test:codemods": "vitest --watch=false --root=packages/ui-codemods", "lint": "lerna run lint --stream", "lint:changes": "npm run lint -- --since HEAD^", "lint:fix": "lerna run lint:fix --stream",