diff --git a/docs/.vitepress/components.d.ts b/docs/.vitepress/components.d.ts index 19809a93fbc1..5bd86b9a8c0f 100644 --- a/docs/.vitepress/components.d.ts +++ b/docs/.vitepress/components.d.ts @@ -8,6 +8,7 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { Contributors: typeof import('./components/Contributors.vue')['default'] + CourseLink: typeof import('./components/CourseLink.vue')['default'] FeaturesList: typeof import('./components/FeaturesList.vue')['default'] HomePage: typeof import('./components/HomePage.vue')['default'] ListItem: typeof import('./components/ListItem.vue')['default'] diff --git a/docs/.vitepress/components/CourseLink.vue b/docs/.vitepress/components/CourseLink.vue new file mode 100644 index 000000000000..2a03f09e64c4 --- /dev/null +++ b/docs/.vitepress/components/CourseLink.vue @@ -0,0 +1,12 @@ + + + diff --git a/docs/guide/features.md b/docs/guide/features.md index 6aed1de35eb6..0e587193931a 100644 --- a/docs/guide/features.md +++ b/docs/guide/features.md @@ -7,6 +7,9 @@ outline: deep +
+Learn how to write your first test by Video + ## Shared config between test, dev and build Vite's config, transformers, resolvers, and plugins. Use the same setup from your app to run the tests. diff --git a/docs/guide/index.md b/docs/guide/index.md index 28a499253c82..bbfdfc3b0e96 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -16,6 +16,8 @@ You can try Vitest online on [StackBlitz](https://vitest.new). It runs Vitest di ## Adding Vitest to your Project +Learn how to install by Video + With npm ```bash npm install -D vitest diff --git a/docs/guide/snapshot.md b/docs/guide/snapshot.md index be10b31c4f72..92ed25b1e085 100644 --- a/docs/guide/snapshot.md +++ b/docs/guide/snapshot.md @@ -4,6 +4,8 @@ title: Snapshot | Guide # Snapshot +Learn Snapshot by video from Vue School + Snapshot tests are a very useful tool whenever you want to make sure the output of your functions does not change unexpectedly. When using snapshot, Vitest will take a snapshot of the given value, then compares it to a reference snapshot file stored alongside the test. The test will fail if the two snapshots do not match: either the change is unexpected, or the reference snapshot needs to be updated to the new version of the result.