How to setup tests?
I created a new Nuxt3 app via
npx nuxi init <project-name>
and want to add unit tests. Based on https://nuxt.com/docs/getting-started/testing I called npm install -D @nuxt/test-utils vitest
and started with ./pages/foo.spec.ts
When calling vitest --run
as a npm script I get the following error
Maybe my setup is wrong. I wasn't able to find information about
- Where to put the tests?
- How to call the tests via npm scripts?1 Reply
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View