test-utils icon indicating copy to clipboard operation
test-utils copied to clipboard

🧪 Test utilities for Nuxt

Results 162 test-utils issues
Sort by recently updated
recently updated
newest added

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

vitest-environment

no idea why this happens normal tests are running :D thanks for this module ![image](https://user-images.githubusercontent.com/1394151/220658885-1df3a8b5-2398-4b9f-9fef-6db416c7a381.png) ```  recipes  npx envinfo --system --binaries --browser --npmPackages System: OS: Windows 10 10.0.22621...

bug
vitest-environment

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

enhancement
good first issue
vitest-environment

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

documentation
enhancement
vitest-environment

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

enhancement
vitest-environment

### 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...

enhancement

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

v0

Would it be possible to use this to run unit tests against a plugin? or HTTP requests in a plugin?

documentation
v0

When I tried to use the library I got this error: ![Captura de pantalla de 2021-09-01 12-04-01](https://user-images.githubusercontent.com/64585682/131652877-49063b2d-97bf-4bf0-8c96-796d21db06ea.png) If I only use jest or testing library they do work, I am...

v0