Skip to content

Commit b94298b

Browse files
committed
docs(en): merging all conflicts
2 parents 1835ded + 7c25641 commit b94298b

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

api/vi.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,13 @@ Vitest 提供的一组有用的辅助函数。
842842

843843
等待回调成功执行。如果回调抛出错误或返回拒绝的承诺,它将继续等待,直到成功或超时。
844844

845+
<<<<<<< HEAD
845846
这在需要等待某些异步操作完成时非常有用,例如,在启动服务器并需要等待其启动时。
847+
=======
848+
If options is set to a number, the effect is equivalent to setting `{ timeout: options }`.
849+
850+
This is very useful when you need to wait for some asynchronous action to complete, for example, when you start a server and need to wait for it to start.
851+
>>>>>>> 7c25641f61110b9696fbd7b05aebb925327fdd67
846852
847853
```ts
848854
import { expect, test, vi } from 'vitest'

config/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,9 +2068,15 @@ Vitest 通常使用缓存对测试进行排序,因此长时间运行的测试
20682068

20692069
#### sequence.hooks
20702070

2071+
<<<<<<< HEAD
20712072
- **类型**: `'stack' | 'list' | 'parallel'`
20722073
- **默认值**: `'parallel'`
20732074
- **命令行终端**: `--sequence.hooks=<value>`
2075+
=======
2076+
- **Type**: `'stack' | 'list' | 'parallel'`
2077+
- **Default**: `'stack'`
2078+
- **CLI**: `--sequence.hooks=<value>`
2079+
>>>>>>> 7c25641f61110b9696fbd7b05aebb925327fdd67
20742080
20752081
更改钩子的执行顺序。
20762082

guide/browser/interactivity-api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ title: Interactivity API | Browser Mode
44

55
# Interactivity API
66

7+
<<<<<<< HEAD
78
Vitest 使用 [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/)[webdriver](https://www.w3.org/TR/webdriver/) API 实现了 [`@testing-library/user-event`](https://testing-library.com/docs/user-event)应用程序接口的子集,而不是伪造事件,这使得浏览器行为更加可靠和一致。
9+
=======
10+
Vitest implements a subset of [`@testing-library/user-event`](https://testing-library.com/docs/user-event/intro) APIs using [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/) or [webdriver](https://www.w3.org/TR/webdriver/) instead of faking events which makes the browser behaviour more reliable and consistent with how users interact with a page.
11+
>>>>>>> 7c25641f61110b9696fbd7b05aebb925327fdd67
812
913
```ts
1014
import { userEvent } from '@vitest/browser/context'

0 commit comments

Comments
 (0)