-
Notifications
You must be signed in to change notification settings - Fork 0
feature/vitest #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/vitest #416
Conversation
| - run: npm run lint --if-present | ||
| test: | ||
| - run: npm run lint | ||
| format: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was called test but was actually format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds Vitest as a testing framework to the repository and creates initial test coverage for utility functions. It also improves CI workflow consistency by removing --if-present flags and reorganizing job definitions.
Changes:
- Added Vitest dependency and configured test script to run tests
- Created comprehensive unit tests for utility functions in
src/utils/index.test.ts - Updated CI workflow to include a dedicated test job and removed
--if-presentflags from lint and format check steps
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/utils/index.test.ts | New test file covering utility functions with various test cases |
| src/components/CellLineInfoCard/CellLineInfoCardBase.tsx | Alphabetized CSS module imports |
| src/component-queries/NavBar.tsx | Alphabetized CSS module imports |
| package.json | Added vitest dependency and configured test script |
| .github/workflows/ci.yml | Added test job, removed --if-present flags, and renamed jobs for consistency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| - run: npm run lint --if-present | ||
| test: | ||
| - run: npm run lint | ||
| format: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch!
rugeli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Problem
Closes #415
These tests aren't exactly critical, but this PR installs vitest and adds a test block to our
ci.ymlI also pulled out the
--if-presentflags in theci.ymlthat maybe we should discuss, seems like those flags are not necessary if our scripts are running properly, and could lead to silent failures? If the scripts are failing we would want to know?