You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/vi.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -842,7 +842,13 @@ Vitest 提供的一组有用的辅助函数。
842
842
843
843
等待回调成功执行。如果回调抛出错误或返回拒绝的承诺,它将继续等待,直到成功或超时。
844
844
845
+
<<<<<<< HEAD
845
846
这在需要等待某些异步操作完成时非常有用,例如,在启动服务器并需要等待其启动时。
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.
Copy file name to clipboardExpand all lines: guide/browser/interactivity-api.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,11 @@ title: Interactivity API | Browser Mode
4
4
5
5
# Interactivity API
6
6
7
+
<<<<<<< HEAD
7
8
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.
0 commit comments