Skip to content

Commit

Permalink
Merge pull request #322 from vitest-dev/sync-fc96d113-1
Browse files Browse the repository at this point in the history
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ fc96d11
  • Loading branch information
elonehoo committed Oct 9, 2023
2 parents 71437f9 + 71d77a1 commit e48e24b
Show file tree
Hide file tree
Showing 23 changed files with 516 additions and 209 deletions.
8 changes: 4 additions & 4 deletions .vitepress/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}

Expand All @@ -11,7 +13,5 @@ declare module 'vue' {
HomePage: typeof import('./components/HomePage.vue')['default']
ListItem: typeof import('./components/ListItem.vue')['default']
NonProjectOption: typeof import('./components/NonProjectOption.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
}
16 changes: 10 additions & 6 deletions .vitepress/components/FeaturesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@
dir="auto"
flex="~ col gap2 md:gap-3"
>
<ListItem>与<a target="_blank" href="https://cn.vitejs.dev/"> Vite </a>通用的配置、转换器、解析器和插件。</ListItem>
<ListItem>使用你的应用程序中的相同配置来进行测试!</ListItem>
<ListItem><a href="https://twitter.com/antfu7/status/1468233216939245579" target="_blank">智能文件监听模式,就像是测试的 HMR!</a></ListItem>
<ListItem>支持测试 Vue、React、Lit 等框架中的组件。</ListItem>
<ListItem>与 <a target="_blank" href="https://vitejs.dev" rel="noopener noreferrer">Vite</a> 通用的配置、转换器、解析器和插件。</ListItem>
<ListItem>使用与你的应用程序相同的设置来运行测试!</ListItem>
<ListItem><a target="_blank" href="https://twitter.com/antfu7/status/1468233216939245579" rel="noopener noreferrer">智能文件监听模式,就像是测试的 HMR!</a></ListItem>
<ListItem>支持对 Vue、React、Svelte、Lit等框架进行组件测试。</ListItem>
<ListItem>开箱即用的 TypeScript / JSX 支持</ListItem>
<ListItem>ESM 优先,支持模块顶级 await</ListItem>
<ListItem>通过 <a href="https://github.com/tinylibs/tinypool" target="_blank">tinypool</a> 使用 Worker 线程尽可能多地并发运行</ListItem>
<ListItem>通过 <a target="_blank" href="https://github.com/tinylibs/tinypool" rel="noopener noreferrer">Tinypool</a> 使用 Worker 线程尽可能多地并发运行</ListItem>
<ListItem>使用 <a target="_blank" href="https://github.com/tinylibs/tinybench" rel="noopener noreferrer">Tinybench</a> 来支持基准测试</ListItem>
<ListItem>套件和测试的过滤、超时、并发配置</ListItem>
<ListItem>支持 <a href="/guide/workspace">Workspace</a></ListItem>
<ListItem><a target="_blank" href="https://jestjs.io/zh-Hans/docs/snapshot-testing" rel="nofollow">Jest 的快照功能</a></ListItem>
<ListItem>
<a href="/guide/snapshot">
Jest 的快照功能
</a>
</ListItem>
<ListItem>内置 <a target="_blank" href="https://www.chaijs.com/" rel="nofollow">Chai</a> 进行断言 + 与 <a href="https://jestjs.io/zh-Hans/docs/expect" rel="nofollow">Jest expect 语法</a>兼容的 API</ListItem>
<ListItem>内置用于对象模拟(Mock)的 <a target="_blank" href="https://github.com/Aslemammad/tinyspy" rel="nofollow">Tinyspy</a></ListItem>
<ListItem>使用 <a target="_blank" href="https://github.com/jsdom/jsdom">jsdom</a> 或 <a target="_blank" href="https://github.com/capricorn86/happy-dom">happy-dom</a> 用于 DOM 模拟</ListItem>
Expand Down
3 changes: 1 addition & 2 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default withPwa(
['link', { rel: 'icon', href: '/favicon.ico', sizes: 'any' }],
['link', { rel: 'icon', href: '/logo.svg', type: 'image/svg+xml' }],
['meta', { name: 'author', content: `${teamMembers.map(c => c.name).join(', ')} and ${vitestName} contributors` }],
['meta', { name: 'keywords', content: 'vitest, vite, test, coverage, snapshot, react, vue, preact, svelte, solid, lit, ruby, cypress, puppeteer, jsdom, happy-dom, test-runner, jest, typescript, esm, tinypool, tinyspy, node' }],
['meta', { name: 'keywords', content: 'vitest, vite, test, coverage, snapshot, react, vue, preact, svelte, solid, lit, marko, ruby, cypress, puppeteer, jsdom, happy-dom, test-runner, jest, typescript, esm, tinypool, tinyspy, node' }],
['meta', { property: 'og:title', content: vitestName }],
['meta', { property: 'og:description', content: vitestDescription }],
['meta', { property: 'og:url', content: ogUrl }],
Expand All @@ -53,7 +53,6 @@ export default withPwa(
['noscript', {}, `<link rel="stylesheet" crossorigin="anonymous" href="${font}" />`],
['link', { rel: 'mask-icon', href: '/logo.svg', color: '#ffffff' }],
['link', { rel: 'apple-touch-icon', href: '/apple-touch-icon.png', sizes: '180x180' }],

],
lastUpdated: true,
markdown: {
Expand Down

0 comments on commit e48e24b

Please sign in to comment.