diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61f3e7c..ebb44b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: npm ci npx playwright install --with-deps - name: Run tests - run: npm run test:all + run: npm run test:coverage - name: Hide outdated comment uses: Brightspace/third-party-actions@int128/hide-comment-action with: diff --git a/package.json b/package.json index b633da5..e4bf92d 100644 --- a/package.json +++ b/package.json @@ -21,12 +21,13 @@ "lint:eslint": "eslint . --ext .js,.cjs", "fix": "npm run fix:eslint", "fix:eslint": "npm run lint:eslint -- --fix", - "test": "npm run lint && npm run test:all", - "test:all": "c8 run-s test:unit test:integration", + "test": "run-s lint test:all", + "test:all": "run-s test:unit test:integration", "test:unit": "mocha test/unit/**/*.test.js", "test:integration": "run-s test:integration:mocha test:integration:playwright", "test:integration:mocha": "mocha --config test/integration/configs/mocha.cjs", - "test:integration:playwright": "playwright test --config test/integration/configs/playwright.js" + "test:integration:playwright": "playwright test --config test/integration/configs/playwright.js", + "test:coverage": "c8 npm run test:all" }, "engines": { "node": ">=20"