Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ export default ({ mode }: { mode: string }) => {
},
},
markdown: {
container: {
tipLabel: '提示',
warningLabel: '注意',
dangerLabel: '警告',
infoLabel: '说明',
detailsLabel: '详情',
},
config(md) {
md.use(tabsMarkdownPlugin)
md.use(groupIconMdPlugin)
Expand Down
2 changes: 1 addition & 1 deletion api/browser/assertions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: Assertion API | 浏览器模式

Vitest 默认提供了一组丰富的 DOM 断言,这些断言源自 [`@testing-library/jest-dom`](https://github.com/testing-library/jest-dom) 库,并增加了对定位器的支持以及内置的重试能力。

::: tip TypeScript Support
::: tip TypeScript 支持
如果你正在使用 [TypeScript](/guide/browser/#typescript) 或希望在 `expect` 中获得正确的类型提示,请确保在某个地方引用了 `vitest/browser`。如果你从未从该模块导入过,可以在 `tsconfig.json` 覆盖范围内的任何文件中添加一个 `reference` 注释:

```ts
Expand Down
Loading