This isn't Nuxt specific here, but to import `@nuxt/test-utils` in your vitest config, you either need to have to have `type: "module"` specified in your `package.json` or name it `vitest.config.m{ts,js}`. #822
This isn't Nuxt specific here, but to import `@nuxt/test-utils` in your vitest config, you either need to have to have `type: "module"` specified in your `package.json` or name it `vitest.config.m{ts,js}`.
We should make this clear in the docs.
Originally posted by @danielroe in https://github.com/nuxt/test-utils/issues/704#issuecomment-1890993131