We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca70003 commit f15358dCopy full SHA for f15358d
devtools/src/window/testing-library.js
@@ -4,6 +4,8 @@ import {
4
getSuggestedQuery,
5
fireEvent,
6
} from '@testing-library/dom';
7
+import userEvent from '@testing-library/user-event';
8
+
9
window.__TESTING_PLAYGROUND__ = window.__TESTING_PLAYGROUND__ || {};
10
11
function augmentQuery(query) {
@@ -32,6 +34,8 @@ export function setup(view) {
32
34
view.within = within;
33
35
36
view.container = view.document.body;
37
+ view.userEvent = userEvent;
38
+ view.user = userEvent;
39
}
40
41
setup(window);
0 commit comments