Skip to content

infra: setup vitest testing framework and initial auth utility test suite (#76)#112

Open
adityakrmishra wants to merge 4 commits into
rushikesh-bobade:mainfrom
adityakrmishra:infra-vitest-setup
Open

infra: setup vitest testing framework and initial auth utility test suite (#76)#112
adityakrmishra wants to merge 4 commits into
rushikesh-bobade:mainfrom
adityakrmishra:infra-vitest-setup

Conversation

@adityakrmishra

Copy link
Copy Markdown
Contributor

Closes #76

Summary

This PR establishes the foundational testing infrastructure for FlipTrack using Vitest. It ensures we can safely merge future community PRs without regressions, starting with a basic test suite for our authentication utilities.

Implementation Details

  • Framework: Installed vitest, @testing-library/react, jsdom, and @testing-library/jest-dom.
  • Configuration: Added vitest.config.ts isolated cleanly from the main Vite build, utilizing jsdom for browser-like globals.
  • Test Suite: Implemented an initial, stateless test suite in app/utils/auth.server.test.ts to verify core utility logic without mocking Prisma.
  • Documentation: Updated CONTRIBUTING.md with a new Testing section outlining how to execute the test runner.
  • Validation: Verified locally that npm run test executes successfully and npm run build completes with zero regressions to the existing Vite pipeline.

@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

@adityakrmishra is attempting to deploy a commit to the participationcorner2025-8967's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the ECSoC26 Required label for ECSOC Sentinel scoring label Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codesense Ai: This PR is too large to review automatically. A human maintainer will take a look!

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codesense Ai: This PR is too large to review automatically. A human maintainer will take a look!

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codesense Ai: This PR is too large to review automatically. A human maintainer will take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECSoC26 Required label for ECSOC Sentinel scoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infra: Setup Vitest and write initial test suite for Auth Utils

1 participant