chore: update

This commit is contained in:
Anthony Fu 2021-12-31 15:00:23 +08:00
parent 8a5f822293
commit 9ba4ad7367
2 changed files with 8 additions and 19 deletions

View File

@ -27,6 +27,8 @@ Follow the [Getting Started Guide](https://vitest.dev/guide) or learn [why we ar
Read the [documentation](https://vitest.dev/).
[Examples](https://vitest.dev/guide/#examples) | [Projects using Vitest](https://vitest.dev/guide/#projects-using-vitest)
## Features
- [Vite](https://vitejs.dev/)'s config, transformers, resolvers, and plugins. Use the same setup from your app!
@ -65,24 +67,6 @@ describe('suite name', () => {
$ npx vitest
```
## Examples
- [Unit Testing](./test/core)
- [Vue Component Testing](./test/vue)
- [React Component Testing](./test/react)
- [React Testing with MSW](./test/react-testing-lib-msw)
- [Lit Component Testing](./test/lit)
- [Vitesse Component Testing](./test/vitesse)
## Projects using Vitest
- [unocss](https://github.com/antfu/unocss)
- [unplugin-auto-import](https://github.com/antfu/unplugin-auto-import)
- [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)
- [vitesse-lite](https://github.com/antfu/vitesse-lite)
- [fluent-vue](https://github.com/demivan/fluent-vue)
- [vueuse](https://github.com/vueuse/vueuse)
## Sponsors
### Anthony Fu Sponsors

View File

@ -10,7 +10,7 @@ You can learn more about the rationale behind the project in the [Why Vite](./wh
## Trying Vitest Online
You can try Vitest online on [StackBlitz](https://stackblitz.com/fork/node-8hobg2?file=test%2Fbasic.test.ts&view=editor). It runs Vitest directly in the browser, and it is almost identical to the local setup but doesn't require installing anything on your machine.
You can try Vitest online on [StackBlitz](https://vitest.dev/new). It runs Vitest directly in the browser, and it is almost identical to the local setup but doesn't require installing anything on your machine.
## Adding Vitest to your Project
@ -108,13 +108,18 @@ Run vitest in development mode.
- [Svelte Component Testing](https://github.com/vitest-dev/vitest/tree/main/test/svelte)
- [Lit Component Testing](https://github.com/vitest-dev/vitest/tree/main/test/lit)
- [Vitesse Component Testing](https://github.com/vitest-dev/vitest/tree/main/test/vitesse)
- [All examples](https://github.com/antfu-sponsors/vitest/blob/bad88e49dce396ac73e1029abec47ccb227959e3/test)
## Projects using Vitest
- [unocss](https://github.com/antfu/unocss)
- [unplugin-auto-import](https://github.com/antfu/unplugin-auto-import)
- [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)
- [vitesse](https://github.com/antfu/vitesse)
- [vitesse-lite](https://github.com/antfu/vitesse-lite)
- [fluent-vue](https://github.com/demivan/fluent-vue)
- [vueuse](https://github.com/vueuse/vueuse)
- [milkdown](https://github.com/Saul-Mirone/milkdown
## Using Unreleased Commits