Open
Conversation
Open
There was a problem hiding this comment.
Pull request overview
Adds automated test infrastructure for the UI (Vitest + Testing Library) and Python backend (pytest), and wires both into the GitHub Actions CI pipeline to ensure tests run on every push/PR.
Changes:
- Add initial UI unit/component tests and configure Vitest to run tests located under
tests/ui/. - Add initial Python API/worker tests plus
pytest.inito standardize discovery and import paths. - Update CI workflow to run UI tests and Python tests before builds/compile checks.
Reviewed changes
Copilot reviewed 12 out of 14 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
tests/worker/test_process_job.py |
Adds unit-style tests for worker job processing with mocked GitHub HTTP calls. |
tests/ui/lib/utils.test.ts |
Adds unit tests for cn utility. |
tests/ui/components/page-header.test.tsx |
Adds a component render test for PageHeader using Testing Library. |
tests/api/test_health.py |
Adds unit + integration tests for the /healthz endpoint and router mounting. |
pytest.ini |
Configures pytest discovery and sets pythonpath for API/worker imports. |
package.json |
Adds local CI convenience scripts (ci:local*). |
apps/ui/vitest.setup.ts |
Registers @testing-library/jest-dom matchers for Vitest. |
apps/ui/vitest.config.ts |
Adds Vitest configuration targeting tests outside apps/ui. |
apps/ui/vitest-env.d.ts |
Adds TS type references for jest-dom matchers. |
apps/ui/tsconfig.json |
Includes external UI test files and Vitest/jest-dom typing support. |
apps/ui/package.json |
Adds Vitest/testing-library deps and test scripts; updates check pipeline. |
apps/ui/package-lock.json |
Locks newly added UI testing dependencies. |
apps/ui/eslint.config.mjs |
Minor refactor of path handling for eslint config setup. |
.github/workflows/ci.yml |
Runs UI tests (Vitest) and Python tests (pytest) in CI. |
Files not reviewed (1)
- apps/ui/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 13 changed files in this pull request and generated 4 comments.
Files not reviewed (1)
- apps/ui/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #18
This pull request introduces comprehensive test automation for both the UI and Python backend, adds initial test suites, and sets up the required configuration and dependencies to support these workflows. The changes ensure that both the frontend and backend are tested as part of the continuous integration (CI) process, increasing code reliability and maintainability.
CI/CD Workflow Enhancements:
.github/workflows/ci.yml) is updated to run UI and Python tests automatically. This includes adding steps to install test dependencies and execute tests for both the UI (npm run testusing Vitest) and Python backend (pytest). [1] [2] [3]UI Testing Infrastructure:
vitest,@testing-library/react,@testing-library/jest-dom, and related dependencies toapps/ui/package.json. [1] [2]vitest.config.tsandvitest.setup.tsfor test configuration and environment setup. [1] [2]tsconfig.jsonto include test files and module resolution for new dependencies.Python Testing Infrastructure:
pytestas a test dependency (requirements-test.txt) and configures test discovery viapytest.ini. [1] [2]Initial Test Suites:
tests/api/test_health.py) and worker job processing tests (tests/worker/test_process_job.py). [1] [2]tests/ui/components/page-header.test.tsx,tests/ui/lib/utils.test.ts). [1] [2]Minor Code Quality Improvements:
eslint.config.mjsfor consistency.References: