-
Notifications
You must be signed in to change notification settings - Fork 0
✨ Add unit test #18
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
✨ Add unit test #18
Conversation
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 sets up a comprehensive unit testing framework for the project using Jest with separate configurations for DOM and Node.js environments. The testing infrastructure includes coverage reporting, watch mode, and CI integration.
- Adds Jest testing framework with TypeScript support and testing libraries
- Creates separate Jest configurations for DOM (React components) and Node.js (server-side code) testing
- Integrates test execution into the CI workflow
Reviewed Changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Adds Jest and testing library dependencies, plus test scripts for different environments |
| jest.config.ts | Main Jest configuration that orchestrates DOM and Node test projects |
| jest.dom.config.ts | Jest configuration for DOM/React component testing with jsdom environment |
| jest.node.config.ts | Jest configuration for Node.js/server-side testing |
| jest.dom.setup.ts | Setup file for DOM tests with jest-dom matchers |
| jest.node.setup.ts | Setup file for Node.js tests (currently empty) |
| .github/workflows/ci.yml | Updates CI workflow to run tests instead of placeholder |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
3a7dbcc to
a4f2030
Compare
49e5486 to
1b083aa
Compare
|
Moving to backlog for now, will focus on bugfixing for v1 release |
421ced4 to
2c42e86
Compare
No description provided.