NuxtN
Nuxt3d ago
10 replies
Bazze

New project with @nuxt/test-utils fails

I've tried a few times now to set up a new nuxt project with the test module.
During the wizard, the test module prompts if it should add some example tests.
Some of these tests fail
component tests fail due to not being able to access the #imports
And the example e2e test fail due to setup (from @nuxt/test-utils/e2e) hooks bein timed out.
✗ example e2e test > (unnamed) [6266.00ms]
  ^ a beforeEach/afterEach hook timed out for this test.

test\nuxt\component.nuxt.test.ts:
[error] ✗ Build failed in 3.19s

# Unhandled error between tests
-------------------------------
error: Cannot find package '#imports' from 'node_modules\@nuxt\test-utils\dist\runtime-utils\index.mjs'
Was this page helpful?