test-utils
test-utils copied to clipboard
🧪 Test utilities for Nuxt
I have a monorepo with a nuxt 3 app and multiple nuxt modules. The nuxt 3 app already has nuxt-vitest tests and it works great with the new RootDir option....
no idea why this happens normal tests are running :D thanks for this module  ``` recipes npx envinfo --system --binaries --browser --npmPackages System: OS: Windows 10 10.0.22621...
```[tasklist] ### Tasks - [x] Assign old Nuxt 2 issues `v0` label - [x] Move `@nuxt/test-utils` from https://github.com/nuxt/nuxt/tree/6141c08a44346c6753b4468932c91bc6fc830ed7/packages/test-utils to this repository - [x] Create new nightly release workflow in this...
Currently, it's possible to mock a Nuxt import: ```js mockNuxtImport('useStorage', () => { return vi.fn() }) ``` When we want to access this mock in our test, to run an...
Hey, firstly thank you for making this plugin, it looks very useful :) Running this module seems to run the whole nuxt environment, including the plugins, and we have a...
We currently support running composables/components in a browser-type environment (with happy-dom, and soon jsdom). But there are use cases where it might be useful to support running tests in a...
### Describe the feature If we have a special implementation in the prerender environment, we may want to test it with its built from time to time. case: https://github.com/nuxt-modules/i18n/pull/1733 In...
After installing and setting up nuxt test utils as stated in the docs, I get an error saying 'Module @nuxt/test-utils should have "jest-preset.js" or "jest-preset.json" file at the root.' when...
Would it be possible to use this to run unit tests against a plugin? or HTTP requests in a plugin?
When I tried to use the library I got this error:  If I only use jest or testing library they do work, I am...