-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix: respect cacheDir
when optimizer is enabled
#6910
Conversation
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
6cb2f2b
to
c8fbec3
Compare
root: testConfig.root ?? viteConfig.test?.root, | ||
deps: testConfig.deps ?? viteConfig.test?.deps, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added these here to so that root
and deps
from inline test config can be referenced from VitestOptimizer
plugin.
@@ -677,7 +677,7 @@ export function resolveConfig( | |||
if (resolved.cache !== false) { | |||
let cacheDir = VitestCache.resolveCacheDir( | |||
'', | |||
resolve(viteConfig.cacheDir, 'vitest'), | |||
viteConfig.cacheDir, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vitest
suffix is to avoid collision of node_modules/.vite/deps
directory, so using it for results.json
is not technically necessary.
cacheDir
cacheDir
when optimizer is enabled
Description
cacheDir
not honored ifdeps.optimizer.{mode}.enabled
is true #6733cacheDir
not being honored ifdeps.optimizer.{mode}.enabled
istrue
#6902Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yaml
unless you introduce a new test example.Tests
pnpm test:ci
.Documentation
pnpm run docs
command.Changesets
feat:
,fix:
,perf:
,docs:
, orchore:
.