Consolidate Vitest configuration into vite.config.ts - #33
Merged
priscaenoch merged 1 commit intoJul 28, 2026
Conversation
|
@jrcity is attempting to deploy a commit to the Prisca's projects Team on Vercel. A member of the Team first needs to authorize it. |
Moves test coverage, test environments, and alias path mappings into a unified vite.config.ts file to prevent duplicate sources of truth. Removes the redundant vitest.config.ts and vitest.setup.ts files. Adds `@` path aliases to tsconfig.json to appease static analysis.
jrcity
force-pushed
the
build/consolidate-vitest-config
branch
from
July 28, 2026 19:18
766d0c1 to
c7fde54
Compare
|
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
This PR resolves a configuration collision where Vitest was silently ignoring the Vite testing settings. It standardizes the project to use a single
vite.config.tsfor both bundling and testing, removing duplicate sources of truth.What changed
testconfigurations (including coverage targets) intovite.config.ts.resolve.aliasdefinitions intovite.config.tsso Vite natively shares the same path aliases as Vitest.@/*paths mapping totsconfig.jsonfor IDE and static type-checking support../test/setup.tsas the sole test setup file and ensured@testing-library/jest-dom/vitestis globally injected./// <reference types="vitest" />directive tovite.config.tsto strictly type the test configuration.vitest.config.tsandvitest.setup.ts.Testing performed
npm testruns successfully, proving the setup file runs and injectsjest-domcorrectly (validated byvitest-setup.test.tsx).npm run buildexecutes without alias resolution errors.npm run lintandtscsucceed, proving the newtsconfig.jsonpaths resolve the@alias properly.Closes #16