test-utils
test-utils copied to clipboard
🧪 Test utilities for Nuxt
- [ ] Rewrite all the documents, it is still very confusing for users. - [ ] Docs for API - [ ] Add notice for users who change `jest.config.js`...
I did some tests using [`@sucrase/plugin`](https://github.com/alangpierce/sucrase/tree/main/integrations/jest-plugin) and it turned out to be much faster than babel It also managed to transpile the `node_modules` folder, but it took a little longer....
Another PR for us to decide what to use... `@sucrase/plugin` #145 or `jiti` Maybe we could create a `jiti-jest` at https://github.com/unjs What do you think? @pi0
Resolve #69 Now we can start a test, like this: ```js /** * @jest-environment @nuxt/test-utils/environment * @features server * @fixture fixtures/basic */ import { get } from '../../src' describe('environment', ()...
Hi, I was trying to integrate @nuxt/test-utils in my Nuxt application in order to test pages. I already have a bunch of tests written for the components that use @vue/test-utils....
I'd be happy to refactor the way this module is invoked to use the [Jest custom environment feature](https://jestjs.io/docs/en/next/configuration#testenvironment-string), which I think would be a more intuitive way of setting up...
### What problem does this feature solve? This feature would make testing ability a first class citizen in Nuxt and it's future iterations. When running component tests on a nuxt...
chiefly NuxtLink
It would be really convenient if we could mock a filesystem and inject files into it through the test utils. E.g. if my module reads in a config from a...