Add Vitest + Testing Library test suite (31 tests, 5 files)#4
Open
paragon-review[bot] wants to merge 1 commit intomainfrom
Open
Add Vitest + Testing Library test suite (31 tests, 5 files)#4paragon-review[bot] wants to merge 1 commit intomainfrom
paragon-review[bot] wants to merge 1 commit intomainfrom
Conversation
- Install vitest, @testing-library/react, @testing-library/jest-dom, @testing-library/user-event, jsdom as dev dependencies - Add react-router-dom as explicit dependency (was imported but missing from package.json) - Create vitest.config.ts with jsdom environment and asset mocking - Create src/test/setup.ts with jest-dom matchers - Create src/test/mocks/fileMock.ts for static asset imports - Add "test": "vitest run" script to package.json Test coverage: - App.test.tsx (6): route rendering for /, /intouchcx, /pillthought, /palkia, unknown routes, component validation - Home.test.tsx (5): smoke render, heading, portfolio grid, footer, social links - Intouch.test.tsx (6): smoke render, heading, skills list, back link, scroll-to-top, image error handler - PillThought.test.tsx (6): smoke render, heading, section headings, back link, footer, scroll-to-top - Palkia.test.tsx (8): smoke render, heading, sections, tech stack, back link, footer, video element, scroll-to-top Fix: Remove empty AboutProps interface in PillThought.tsx (lint error) Generated with Paragon Co-Authored-By: Paragon <support@polarity.cc>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Adds a comprehensive test suite for the React portfolio app using Vitest and Testing Library.
Changes
Test infrastructure
Test files (31 tests total)
Bug fix
Verification
Generated with Paragon