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
When I run npm run test on Windows, I get the following output:
FAIL tests/app.test.ts [ tests/app.test.ts ]
TypeError: The URL must be of scheme file
❯ node_modules/@nuxt/test-utils/dirs.js:4:17
❯ node_modules/@nuxt/test-utils/dist/e2e.mjs:4:31
As a temporary fix, I'd update node_modules/@nuxt/test-utils/dirs.js as below:
import{fileURLToPath}from'node:url'import{dirname}from'path'// Fix for Windows path resolutionexportconstdistDir=dirname(fileURLToPath(import.meta.url))+'/dist'
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered:
Environment
Windows (11 Pro), NodeJS
v22.12.0
Reproduction
https://github.com/naturalprogrammer/np-nuxt-test-sample
Describe the bug
When I run
npm run test
on Windows, I get the following output:As a temporary fix, I'd update
node_modules/@nuxt/test-utils/dirs.js
as below:Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: