-
Notifications
You must be signed in to change notification settings - Fork 81
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
DataCloneError: (path) => path.replace(/^\/oc/, '') could not be cloned #587
Comments
@danielroe Good afternoon, please tell me how to correctly exclude the
import { defineVitestConfig } from 'nuxt-vitest/config'
import { configDefaults } from 'vitest/config'
export default defineVitestConfig({
test: {
globals: true,
environment: 'nuxt',
exclude: [
...configDefaults.exclude,
'src/shared/api/**',
'public/**',
'**/node_modules/**',
'**.config.ts',
'**/__snapshots__/**',
'.nuxt/**',
],
coverage: {
provider: 'c8',
reportsDirectory: 'coverage',
reporter: ['text', 'json', 'html'],
exclude: [
'src/shared/api/**',
'public/**',
'**/node_modules/**',
'**.config.ts',
'**/__snapshots__/**',
'.nuxt/**',
],
include: ['src/**'],
},
reporters: ['verbose', 'json'],
outputFile: {
json: 'coverage/test-report.json',
},
},
}) |
have you found the fix? |
@hi-reeve No |
Can you provide a reproduction? 🙏 |
weirdly i cannot reproduce this on stackblitz |
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have a couple of templates for starting with a minimal reproduction: 👉 https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/app-vitest A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
After updating to 0.6.10 on Nuht 3 version 3.4.1, i get an error when I try to start
"vitest-environment-nuxt": "^0.6.10"
This line, which swears at startup, is in nuxt.config.ts config in the proxy section and looks like this
I tried excluding the config file:
but now I get the error
The text was updated successfully, but these errors were encountered: