Skip to content

Testing#145

Merged
mbeps merged 3 commits into
mainfrom
dev
Dec 13, 2025
Merged

Testing#145
mbeps merged 3 commits into
mainfrom
dev

Conversation

@mbeps

@mbeps mbeps commented Dec 13, 2025

Copy link
Copy Markdown
Owner

This pull request introduces a comprehensive testing setup for the project using Vitest, adds initial test suites for key hooks and utilities, and integrates test execution into the CI workflow. The changes also include necessary configuration and dependency updates to support the new testing framework.

Testing infrastructure and configuration:

  • Added Vitest configuration with vitest.config.ts, enabling jsdom environment, test coverage thresholds, and TypeScript path support via vite-tsconfig-paths.
  • Added a setup file vitest.setup.ts to extend matchers with @testing-library/jest-dom.
  • Updated package.json to include Vitest and related dependencies, as well as new test scripts (test, test:coverage). [1] [2]

Continuous Integration (CI) enhancements:

  • Updated .github/workflows/merge.yml to add a test job that installs dependencies, builds the project, and runs tests with coverage using Vitest.

Initial test suites:

  • Added tests for the useSelectFile hook to validate file size, type, image dimensions, and selection logic in __tests__/hooks/useSelectFile.test.tsx.
  • Added tests for the useIntersectionObserver hook to verify intersection logic in __tests__/hooks/useIntersectionObserver.test.tsx.
  • Added tests for community permissions logic in __tests__/lib/communityPermissions.test.ts.
  • Added tests for signup form validation in __tests__/lib/validation.test.ts.

@vercel

vercel Bot commented Dec 13, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
circus-discussion Ready Ready Preview, Comment Dec 13, 2025 9:25pm

@mbeps
mbeps merged commit 52e4ba3 into main Dec 13, 2025
6 checks passed
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.

1 participant