Skip to content
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

docs: update vitest config to match vitest docs #3037

Merged
merged 2 commits into from
Mar 3, 2025

Conversation

rn0614
Copy link
Contributor

@rn0614 rn0614 commented Mar 3, 2025

in vite,
mergeConfig accepts only config in object form. If you have a config in callback form, you should call it before passing into mergeConfig.

You can use the defineConfig helper to merge a config in callback form with another config:

https://vite.dev/guide/api-javascript.html#mergeconfig

Related Bug Reports or Discussions

Fixes #

Summary

Check List

  • pnpm run fix for formatting and linting code and docs

in vite,
mergeConfig accepts only config in object form. If you have a config in callback form, you should call it before passing into mergeConfig.

You can use the defineConfig helper to merge a config in callback form with another config:

https://vite.dev/guide/api-javascript.html#mergeconfig
Copy link

vercel bot commented Mar 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zustand-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2025 0:45am

Copy link

codesandbox-ci bot commented Mar 3, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@rn0614 rn0614 changed the title Update testing.md mergeConfig changed setting config rule, mergeConfig only config in object form Mar 3, 2025
Copy link

pkg-pr-new bot commented Mar 3, 2025

Open in Stackblitzdemostarter

npm i https://pkg.pr.new/zustand@3037

commit: 45359d4

@dbritto-dev dbritto-dev changed the title mergeConfig changed setting config rule, mergeConfig only config in object form docs: update vitest config to match vitest docs Mar 3, 2025
@dbritto-dev dbritto-dev merged commit a90981a into pmndrs:main Mar 3, 2025
28 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.

2 participants