File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,13 @@ export default ({ mode }: { mode: string }) => {
8383 } ,
8484 } ,
8585 markdown : {
86+ container : {
87+ tipLabel : '提示' ,
88+ warningLabel : '注意' ,
89+ dangerLabel : '警告' ,
90+ infoLabel : '说明' ,
91+ detailsLabel : '详情' ,
92+ } ,
8693 config ( md ) {
8794 md . use ( tabsMarkdownPlugin )
8895 md . use ( groupIconMdPlugin )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ title: Assertion API | 浏览器模式
66
77Vitest 默认提供了一组丰富的 DOM 断言,这些断言源自 [ ` @testing-library/jest-dom ` ] ( https://github.com/testing-library/jest-dom ) 库,并增加了对定位器的支持以及内置的重试能力。
88
9- ::: tip TypeScript Support
9+ ::: tip TypeScript 支持
1010如果你正在使用 [ TypeScript] ( /guide/browser/#typescript ) 或希望在 ` expect ` 中获得正确的类型提示,请确保在某个地方引用了 ` vitest/browser ` 。如果你从未从该模块导入过,可以在 ` tsconfig.json ` 覆盖范围内的任何文件中添加一个 ` reference ` 注释:
1111
1212``` ts
You can’t perform that action at this time.
0 commit comments