Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ jobs:
- name: 💪 Type check
run: pnpm test:types

- name: 🧪 Unit test
run: pnpm test:unit
- name: 🧪 Unit and component tests
run: pnpm vite test run --coverage
Comment on lines +64 to +65
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Incorrect command: vite does not have a test subcommand.

The command pnpm vite test run --coverage is invalid. vite is the build tool; the test runner is vitest. This will fail at runtime.

🐛 Proposed fix
       - name: 🧪 Unit and component tests
-        run: pnpm vite test run --coverage
+        run: pnpm vitest run --coverage

Alternatively, if there's an existing npm script:

       - name: 🧪 Unit and component tests
-        run: pnpm vite test run --coverage
+        run: pnpm test:unit --coverage
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: 🧪 Unit and component tests
run: pnpm vite test run --coverage
- name: 🧪 Unit and component tests
run: pnpm vitest run --coverage


- name: 🏃 Component tests
run: pnpm test:nuxt
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5

browser:
runs-on: ubuntu-latest
Expand Down
Loading