nuxt / test-utils

🧪 Test utilities for Nuxt
http://nuxt.com/docs/getting-started/testing
MIT License
323 stars 84 forks source link

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

Closed navanjr closed 7 months ago

navanjr commented 7 months ago
          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