Skip to content

Conversation

@interim17
Copy link
Contributor

Problem

Closes #415

These tests aren't exactly critical, but this PR installs vitest and adds a test block to our ci.yml

I also pulled out the --if-present flags in the ci.yml that 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?

@interim17 interim17 requested a review from Copilot January 21, 2026 19:27
- run: npm run lint --if-present
test:
- run: npm run lint
format:
Copy link
Contributor Author

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

Copy link
Contributor

Copilot AI left a 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-present flags 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>
@interim17 interim17 marked this pull request as ready for review January 21, 2026 20:41
@interim17 interim17 requested review from meganrm and rugeli January 21, 2026 20:42
- run: npm run lint --if-present
test:
- run: npm run lint
format:
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice catch!

Copy link
Collaborator

@rugeli rugeli left a comment

Choose a reason for hiding this comment

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

LGTM!

@interim17 interim17 changed the title Feature/vitest feature/vitest Jan 21, 2026
@interim17 interim17 merged commit 6c865a1 into main Jan 22, 2026
7 checks passed
@interim17 interim17 deleted the feature/vitest branch January 22, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add a test runner

4 participants