Test file
diff --git a/guide/features.md b/guide/features.md
index 7655427c..e11f4c09 100644
--- a/guide/features.md
+++ b/guide/features.md
@@ -5,6 +5,10 @@ outline: deep
# 主要功能 {#features}
+
+
通过视频了解如何编写你的第一个测试
diff --git a/guide/index.md b/guide/index.md
index 0eca39c8..de6b98df 100644
--- a/guide/index.md
+++ b/guide/index.md
@@ -246,12 +246,11 @@ export default defineConfig({
| `in-source-test` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/in-source-test) | [在线演示](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/in-source-test?initialPath=__vitest__/) |
| `lit` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/lit) | [在线演示](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/lit?initialPath=__vitest__/) |
| `vue` | [GitHub](https://github.com/vitest-tests/browser-examples/tree/main/examples/vue) | [在线演示](https://stackblitz.com/fork/github/vitest-tests/browser-examples/tree/main/examples/vue?initialPath=__vitest__/) |
-| `marko` | [GitHub](https://github.com/marko-js/examples/tree/master/examples/library-ts) | [在线演示](https://stackblitz.com/fork/github/marko-js/examples/tree/master/examples/library-ts/) |
+| `marko` | [GitHub](https://github.com/vitest-tests/browser-examples/tree/main/examples/marko) | [在线演示](https://stackblitz.com/fork/github/vitest-tests/browser-examples/tree/main/examples/marko?initialPath=__vitest__/) |
| `preact` | [GitHub](https://github.com/vitest-tests/browser-examples/tree/main/examples/preact) | [在线演示](https://stackblitz.com/fork/github/vitest-tests/browser-examples/tree/main/examples/preact?initialPath=__vitest__/) |
| `react` | [GitHub](https://github.com/vitest-tests/browser-examples/tree/main/examples/react) | [在线演示](https://stackblitz.com/fork/github/vitest-tests/browser-examples/tree/main/examples/react?initialPath=__vitest__/) |
| `solid` | [GitHub](https://github.com/vitest-tests/browser-examples/tree/main/examples/solid) | [在线演示](https://stackblitz.com/fork/github/vitest-tests/browser-examples/tree/main/examples/solid?initialPath=__vitest__/) |
| `svelte` | [GitHub](https://github.com/vitest-tests/browser-examples/tree/main/examples/svelte) | [在线演示](https://stackblitz.com/fork/github/vitest-tests/browser-examples/tree/main/examples/svelte?initialPath=__vitest__/) |
-| `sveltekit` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/sveltekit) | [在线演示](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/sveltekit?initialPath=__vitest__/) |
| `profiling` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/profiling) | 暂无 |
| `typecheck` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/typecheck) | [在线演示](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/typecheck?initialPath=__vitest__/) |
| `projects` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/projects) | [在线演示](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/projects?initialPath=__vitest__/) |
diff --git a/guide/open-telemetry.md b/guide/open-telemetry.md
index 297f4597..05f4ba2b 100644
--- a/guide/open-telemetry.md
+++ b/guide/open-telemetry.md
@@ -150,3 +150,7 @@ You can view traces using any of the open source or commercial products that sup
Vitest declares `@opentelemetry/api` as an optional peer dependency, which it uses internally to generate spans. When trace collection is not enabled, Vitest will not attempt to use this dependency.
When configuring Vitest to use OpenTelemetry, you will typically install `@opentelemetry/sdk-node`, which includes `@opentelemetry/api` as a transitive dependency, thereby satisfying Vitest's peer dependency requirement. If you encounter an error indicating that `@opentelemetry/api` cannot be found, this typically means trace collection has not been enabled. If the error persists after proper configuration, you may need to install `@opentelemetry/api` explicitly.
+
+## Inter-Process Context Propagation
+
+Vitest supports automatic context propagation from parent processes via the `TRACEPARENT` and `TRACESTATE` environment variables as defined in the [OpenTelemetry specification](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/context/env-carriers.md). This is particularly useful when running Vitest as part of a larger distributed tracing system (e.g., CI/CD pipelines with OpenTelemetry instrumentation).
diff --git a/package.json b/package.json
index 86333e16..efdafba8 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,6 @@
"simple-git-hooks": "^2.13.1",
"tinyglobby": "^0.2.15",
"unocss": "^66.5.9",
- "unplugin-vue-components": "^0.28.0",
"vite": "^6.3.5",
"vite-plugin-pwa": "^0.21.2",
"vitepress": "2.0.0-alpha.15",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7fbe5314..d568b01b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -72,9 +72,6 @@ importers:
unocss:
specifier: ^66.5.9
version: 66.5.10(postcss@8.5.6)(vite@6.4.1(@types/node@24.10.2)(jiti@2.6.1)(terser@5.43.1)(tsx@4.21.0)(yaml@2.8.1))
- unplugin-vue-components:
- specifier: ^0.28.0
- version: 0.28.0(@babel/parser@7.28.5)(rollup@2.79.2)(vue@3.5.25(typescript@5.9.2))
vite:
specifier: ^6.3.5
version: 6.4.1(@types/node@24.10.2)(jiti@2.6.1)(terser@5.43.1)(tsx@4.21.0)(yaml@2.8.1)
@@ -169,9 +166,6 @@ packages:
engines: {node: '>=20'}
hasBin: true
- '@antfu/utils@0.7.10':
- resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==}
-
'@antfu/utils@9.2.0':
resolution: {integrity: sha512-Oq1d9BGZakE/FyoEtcNeSwM7MpDO2vUBi11RWBZXf75zPsbUVWmUs03EqkRFrcgbXyKTas0BdZWC1wcuSoqSAw==}
@@ -3275,10 +3269,6 @@ packages:
resolution: {integrity: sha512-ME4Fb83LgEgwNw96RKNvKV4VTLuXfoKudAmm2lP8Kk87KaMK0/Xrx/aAkMWmT8mDb+3MlFDspfbCs7adjRxA2g==}
engines: {node: '>=20.0.0'}
- local-pkg@0.5.1:
- resolution: {integrity: sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==}
- engines: {node: '>=14'}
-
local-pkg@1.1.2:
resolution: {integrity: sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==}
engines: {node: '>=14'}
@@ -3316,9 +3306,6 @@ packages:
magic-string@0.25.9:
resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==}
- magic-string@0.30.19:
- resolution: {integrity: sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw==}
-
magic-string@0.30.21:
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
@@ -4442,23 +4429,6 @@ packages:
resolution: {integrity: sha512-5lWVjgi6vuHhJ526bI4nlCOmkCIF3nnfXkCMDeMJrtdvxTs6ZFCM8oNufGTsDbKv/tJ/xj8RpvXjRuPBZJuJog==}
engines: {node: '>=20.19.0'}
- unplugin-vue-components@0.28.0:
- resolution: {integrity: sha512-jiTGtJ3JsRFBjgvyilfrX7yUoGKScFgbdNw+6p6kEXU+Spf/rhxzgvdfuMcvhCcLmflB/dY3pGQshYBVGOUx7Q==}
- engines: {node: '>=14'}
- peerDependencies:
- '@babel/parser': ^7.15.8
- '@nuxt/kit': ^3.2.2
- vue: 2 || 3
- peerDependenciesMeta:
- '@babel/parser':
- optional: true
- '@nuxt/kit':
- optional: true
-
- unplugin@2.3.5:
- resolution: {integrity: sha512-RyWSb5AHmGtjjNQ6gIlA67sHOsWpsbWpwDokLwTcejVdOjEkJZh7QKu14J00gDDVSh8kGH4KYC/TNBceXFZhtw==}
- engines: {node: '>=18.12.0'}
-
upath@1.2.0:
resolution: {integrity: sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==}
engines: {node: '>=4'}
@@ -4675,9 +4645,6 @@ packages:
webidl-conversions@4.0.2:
resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==}
- webpack-virtual-modules@0.6.2:
- resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==}
-
whatwg-url@7.1.0:
resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==}
@@ -4878,8 +4845,6 @@ snapshots:
tinyexec: 1.0.1
tinyglobby: 0.2.15
- '@antfu/utils@0.7.10': {}
-
'@antfu/utils@9.2.0': {}
'@apideck/better-ajv-errors@0.3.6(ajv@8.17.1)':
@@ -4905,10 +4870,10 @@ snapshots:
'@babel/helper-compilation-targets': 7.27.2
'@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0)
'@babel/helpers': 7.28.2
- '@babel/parser': 7.28.4
+ '@babel/parser': 7.28.5
'@babel/template': 7.27.2
'@babel/traverse': 7.28.0
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
convert-source-map: 2.0.0
debug: 4.4.3
gensync: 1.0.0-beta.2
@@ -4927,7 +4892,7 @@ snapshots:
'@babel/helper-annotate-as-pure@7.27.3':
dependencies:
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
'@babel/helper-compilation-targets@7.27.2':
dependencies:
@@ -4973,14 +4938,14 @@ snapshots:
'@babel/helper-member-expression-to-functions@7.27.1':
dependencies:
'@babel/traverse': 7.28.0
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
transitivePeerDependencies:
- supports-color
'@babel/helper-module-imports@7.27.1':
dependencies:
'@babel/traverse': 7.28.0
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
transitivePeerDependencies:
- supports-color
@@ -4988,14 +4953,14 @@ snapshots:
dependencies:
'@babel/core': 7.28.0
'@babel/helper-module-imports': 7.27.1
- '@babel/helper-validator-identifier': 7.27.1
+ '@babel/helper-validator-identifier': 7.28.5
'@babel/traverse': 7.28.0
transitivePeerDependencies:
- supports-color
'@babel/helper-optimise-call-expression@7.27.1':
dependencies:
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
'@babel/helper-plugin-utils@7.27.1': {}
@@ -5020,7 +4985,7 @@ snapshots:
'@babel/helper-skip-transparent-expression-wrappers@7.27.1':
dependencies:
'@babel/traverse': 7.28.0
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
transitivePeerDependencies:
- supports-color
@@ -5036,14 +5001,14 @@ snapshots:
dependencies:
'@babel/template': 7.27.2
'@babel/traverse': 7.28.0
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
transitivePeerDependencies:
- supports-color
'@babel/helpers@7.28.2':
dependencies:
'@babel/template': 7.27.2
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
'@babel/parser@7.27.7':
dependencies:
@@ -5285,7 +5250,7 @@ snapshots:
'@babel/core': 7.28.0
'@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0)
'@babel/helper-plugin-utils': 7.27.1
- '@babel/helper-validator-identifier': 7.27.1
+ '@babel/helper-validator-identifier': 7.28.5
'@babel/traverse': 7.28.0
transitivePeerDependencies:
- supports-color
@@ -5525,7 +5490,7 @@ snapshots:
dependencies:
'@babel/core': 7.28.0
'@babel/helper-plugin-utils': 7.27.1
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
esutils: 2.0.3
'@babel/runtime@7.28.2': {}
@@ -5553,9 +5518,9 @@ snapshots:
'@babel/code-frame': 7.27.1
'@babel/generator': 7.28.0
'@babel/helper-globals': 7.28.0
- '@babel/parser': 7.28.4
+ '@babel/parser': 7.28.5
'@babel/template': 7.27.2
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
debug: 4.4.3
transitivePeerDependencies:
- supports-color
@@ -8298,11 +8263,6 @@ snapshots:
rfdc: 1.4.1
wrap-ansi: 9.0.2
- local-pkg@0.5.1:
- dependencies:
- mlly: 1.7.4
- pkg-types: 1.3.1
-
local-pkg@1.1.2:
dependencies:
mlly: 1.7.4
@@ -8341,10 +8301,6 @@ snapshots:
dependencies:
sourcemap-codec: 1.4.8
- magic-string@0.30.19:
- dependencies:
- '@jridgewell/sourcemap-codec': 1.5.5
-
magic-string@0.30.21:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.5
@@ -9802,31 +9758,6 @@ snapshots:
pathe: 2.0.3
picomatch: 4.0.3
- unplugin-vue-components@0.28.0(@babel/parser@7.28.5)(rollup@2.79.2)(vue@3.5.25(typescript@5.9.2)):
- dependencies:
- '@antfu/utils': 0.7.10
- '@rollup/pluginutils': 5.2.0(rollup@2.79.2)
- chokidar: 3.6.0
- debug: 4.4.3
- fast-glob: 3.3.3
- local-pkg: 0.5.1
- magic-string: 0.30.19
- minimatch: 9.0.5
- mlly: 1.7.4
- unplugin: 2.3.5
- vue: 3.5.25(typescript@5.9.2)
- optionalDependencies:
- '@babel/parser': 7.28.5
- transitivePeerDependencies:
- - rollup
- - supports-color
-
- unplugin@2.3.5:
- dependencies:
- acorn: 8.15.0
- picomatch: 4.0.3
- webpack-virtual-modules: 0.6.2
-
upath@1.2.0: {}
update-browserslist-db@1.1.3(browserslist@4.25.1):
@@ -10052,8 +9983,6 @@ snapshots:
webidl-conversions@4.0.2: {}
- webpack-virtual-modules@0.6.2: {}
-
whatwg-url@7.1.0:
dependencies:
lodash.sortby: 4.7.0
diff --git a/vite.config.ts b/vite.config.ts
index e09e7a61..caa01ff6 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,7 +1,5 @@
-import type { Plugin } from 'vite'
import { presetAttributify, presetIcons, presetUno } from 'unocss'
import Unocss from 'unocss/vite'
-import Components from 'unplugin-vue-components/vite'
import { defineConfig } from 'vite'
export default defineConfig({
@@ -16,11 +14,6 @@ export default defineConfig({
},
},
plugins: [
- Components({
- include: [/\.vue/, /\.md/],
- dirs: '.vitepress/components',
- dts: '.vitepress/components.d.ts',
- }) as Plugin,
Unocss({
shortcuts: [
['btn', 'px-4 py-1 rounded inline-flex justify-center gap-2 text-white leading-30px children:mya !no-underline cursor-pointer disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],