You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could that be because process is in fact referenced inside https://github.com/nuxt/test-utils/blob/main/src/config.ts, when I'm running the test runner under a browser environment, and not in Node? If so, how can I configure vitest to run in browser mode under Nuxt environment?
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Can confirm that I am getting the same error.
Nuxt: 3.13.0
Vitest + @vitest/browser: 2.1.3
I tried several different package versions with no luck. Error shows up on both, WebdriverIO and playwright, firefox and chrome. Sometimes the error doesn't pop up though.
Either way, test discovery does not populate in browser mode.
Environment
Reproduction
https://stackblitz.com/edit/github-912ubv
run
pnpm test:browser
and check the components directory for Foo.vue and Foo.test.tsDescribe the bug
I'm following steps 1 and 2 from the setup, but when running
vitest
in browser mode I get the following error in the browser UI:ReferenceError: process is not defined
❯ /node_modules/.pnpm/vite@5.4.8_@types[email protected][email protected]/node_modules/vite/dist/client/env.mjs:12:519
Could that be because
process
is in fact referenced inside https://github.com/nuxt/test-utils/blob/main/src/config.ts, when I'm running the test runner under a browser environment, and not in Node? If so, how can I configure vitest to run in browser mode under Nuxt environment?Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: