nuxt / test-utils

🧪 Test utilities for Nuxt

Home Page:http://nuxt.com/docs/getting-started/testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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}`.

navanjr opened this issue · comments

commented
          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 #704 (comment)