@mui/internal-test-utils 1.0.0-dev.20240529-082515-213b5e33ab
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +9 -0
- package/build/.tsbuildinfo +1 -0
- package/build/KarmaReporterReactProfiler.d.ts +51 -0
- package/build/KarmaReporterReactProfiler.d.ts.map +1 -0
- package/build/KarmaReporterReactProfiler.js +68 -0
- package/build/KarmaReporterReactProfiler.js.map +1 -0
- package/build/components.d.ts +36 -0
- package/build/components.d.ts.map +1 -0
- package/build/components.js +78 -0
- package/build/components.js.map +1 -0
- package/build/createDOM.d.ts +3 -0
- package/build/createDOM.d.ts.map +1 -0
- package/build/createDOM.js +60 -0
- package/build/createDOM.js.map +1 -0
- package/build/createDescribe.d.ts +8 -0
- package/build/createDescribe.d.ts.map +1 -0
- package/build/createDescribe.js +22 -0
- package/build/createDescribe.js.map +1 -0
- package/build/createMount.d.ts +9 -0
- package/build/createMount.d.ts.map +1 -0
- package/build/createMount.js +120 -0
- package/build/createMount.js.map +1 -0
- package/build/createRenderer.d.ts +231 -0
- package/build/createRenderer.d.ts.map +1 -0
- package/build/createRenderer.js +506 -0
- package/build/createRenderer.js.map +1 -0
- package/build/createRenderer.test.d.ts +2 -0
- package/build/createRenderer.test.d.ts.map +1 -0
- package/build/createRenderer.test.js +48 -0
- package/build/createRenderer.test.js.map +1 -0
- package/build/describeConformance.d.ts +152 -0
- package/build/describeConformance.d.ts.map +1 -0
- package/build/describeConformance.js +815 -0
- package/build/describeConformance.js.map +1 -0
- package/build/findOutermostIntrinsic.d.ts +14 -0
- package/build/findOutermostIntrinsic.d.ts.map +1 -0
- package/build/findOutermostIntrinsic.js +22 -0
- package/build/findOutermostIntrinsic.js.map +1 -0
- package/build/findOutermostIntrinsic.test.d.ts +2 -0
- package/build/findOutermostIntrinsic.test.d.ts.map +1 -0
- package/build/findOutermostIntrinsic.test.js +70 -0
- package/build/findOutermostIntrinsic.test.js.map +1 -0
- package/build/fireDiscreteEvent.d.ts +7 -0
- package/build/fireDiscreteEvent.d.ts.map +1 -0
- package/build/fireDiscreteEvent.js +98 -0
- package/build/fireDiscreteEvent.js.map +1 -0
- package/build/flushMicrotasks.d.ts +2 -0
- package/build/flushMicrotasks.d.ts.map +1 -0
- package/build/flushMicrotasks.js +11 -0
- package/build/flushMicrotasks.js.map +1 -0
- package/build/focusVisible.d.ts +7 -0
- package/build/focusVisible.d.ts.map +1 -0
- package/build/focusVisible.js +33 -0
- package/build/focusVisible.js.map +1 -0
- package/build/index.d.ts +18 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +59 -0
- package/build/index.js.map +1 -0
- package/build/init.d.ts +2 -0
- package/build/init.d.ts.map +1 -0
- package/build/init.js +42 -0
- package/build/init.js.map +1 -0
- package/build/initMatchers.d.ts +81 -0
- package/build/initMatchers.d.ts.map +1 -0
- package/build/initMatchers.js +431 -0
- package/build/initMatchers.js.map +1 -0
- package/build/initMatchers.test.d.ts +2 -0
- package/build/initMatchers.test.d.ts.map +1 -0
- package/build/initMatchers.test.js +103 -0
- package/build/initMatchers.test.js.map +1 -0
- package/build/initPlaywrightMatchers.d.ts +25 -0
- package/build/initPlaywrightMatchers.d.ts.map +1 -0
- package/build/initPlaywrightMatchers.js +63 -0
- package/build/initPlaywrightMatchers.js.map +1 -0
- package/build/mochaHooks.d.ts +25 -0
- package/build/mochaHooks.d.ts.map +1 -0
- package/build/mochaHooks.js +171 -0
- package/build/mochaHooks.js.map +1 -0
- package/build/mochaHooks.test.d.ts +2 -0
- package/build/mochaHooks.test.d.ts.map +1 -0
- package/build/mochaHooks.test.js +112 -0
- package/build/mochaHooks.test.js.map +1 -0
- package/build/setup.d.ts +2 -0
- package/build/setup.d.ts.map +1 -0
- package/build/setup.js +10 -0
- package/build/setup.js.map +1 -0
- package/build/setupBabel.d.ts +2 -0
- package/build/setupBabel.d.ts.map +1 -0
- package/build/setupBabel.js +5 -0
- package/build/setupBabel.js.map +1 -0
- package/build/setupBabelPlaywright.d.ts +2 -0
- package/build/setupBabelPlaywright.d.ts.map +1 -0
- package/build/setupBabelPlaywright.js +11 -0
- package/build/setupBabelPlaywright.js.map +1 -0
- package/build/setupJSDOM.d.ts +7 -0
- package/build/setupJSDOM.d.ts.map +1 -0
- package/build/setupJSDOM.js +17 -0
- package/build/setupJSDOM.js.map +1 -0
- package/build/setupKarma.d.ts +2 -0
- package/build/setupKarma.d.ts.map +1 -0
- package/build/setupKarma.js +56 -0
- package/build/setupKarma.js.map +1 -0
- package/build/until.d.ts +2 -0
- package/build/until.d.ts.map +1 -0
- package/build/until.js +26 -0
- package/build/until.js.map +1 -0
- package/build/until.test.d.ts +2 -0
- package/build/until.test.d.ts.map +1 -0
- package/build/until.test.js +118 -0
- package/build/until.test.js.map +1 -0
- package/build/userEvent.d.ts +8 -0
- package/build/userEvent.d.ts.map +1 -0
- package/build/userEvent.js +61 -0
- package/build/userEvent.js.map +1 -0
- package/package.json +76 -0
- package/src/KarmaReporterReactProfiler.js +81 -0
- package/src/components.tsx +61 -0
- package/src/createDOM.d.ts +9 -0
- package/src/createDOM.js +67 -0
- package/src/createDescribe.ts +31 -0
- package/src/createMount.tsx +136 -0
- package/src/createRenderer.test.js +31 -0
- package/src/createRenderer.tsx +737 -0
- package/src/describeConformance.tsx +1117 -0
- package/src/findOutermostIntrinsic.test.js +68 -0
- package/src/findOutermostIntrinsic.ts +19 -0
- package/src/fireDiscreteEvent.ts +76 -0
- package/src/flushMicrotasks.ts +8 -0
- package/src/focusVisible.ts +28 -0
- package/src/index.ts +24 -0
- package/src/init.js +15 -0
- package/src/initMatchers.test.js +126 -0
- package/src/initMatchers.ts +658 -0
- package/src/initPlaywrightMatchers.ts +96 -0
- package/src/mochaHooks.js +209 -0
- package/src/mochaHooks.test.js +113 -0
- package/src/setup.js +10 -0
- package/src/setupBabel.js +3 -0
- package/src/setupBabelPlaywright.js +10 -0
- package/src/setupJSDOM.js +20 -0
- package/src/setupKarma.js +65 -0
- package/src/until.js +28 -0
- package/src/until.test.js +120 -0
- package/src/userEvent.ts +35 -0
- package/tsconfig.build.json +17 -0
- package/tsconfig.json +12 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
/* eslint-env mocha */
|
|
27
|
+
const React = __importStar(require("react"));
|
|
28
|
+
const ReactDOM = __importStar(require("react-dom"));
|
|
29
|
+
const ReactDOMTestUtils = __importStar(require("react-dom/test-utils"));
|
|
30
|
+
const enzyme_1 = require("enzyme");
|
|
31
|
+
/**
|
|
32
|
+
* Can't just mount <React.Fragment>{node}</React.Fragment>
|
|
33
|
+
* because that swallows wrapper.setProps
|
|
34
|
+
*
|
|
35
|
+
* why class component:
|
|
36
|
+
* https://github.com/airbnb/enzyme/issues/2043
|
|
37
|
+
*/
|
|
38
|
+
// eslint-disable-next-line react/prefer-stateless-function
|
|
39
|
+
class Mode extends React.Component {
|
|
40
|
+
render() {
|
|
41
|
+
// Excess props will come from e.g. enzyme setProps
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
43
|
+
const { __element, __strict, ...other } = this.props;
|
|
44
|
+
const Component = __strict ? React.StrictMode : React.Fragment;
|
|
45
|
+
return React.createElement(Component, null, React.cloneElement(__element, other));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// Generate an enhanced mount function.
|
|
49
|
+
function createMount(options = {}) {
|
|
50
|
+
const { mount = enzyme_1.mount, strict: globalStrict = true, ...globalEnzymeOptions } = options;
|
|
51
|
+
let container = null;
|
|
52
|
+
function computeTestName(test) {
|
|
53
|
+
let current = test;
|
|
54
|
+
const titles = [];
|
|
55
|
+
while (current != null) {
|
|
56
|
+
titles.push(current.title);
|
|
57
|
+
current = current.parent;
|
|
58
|
+
}
|
|
59
|
+
return titles.filter(Boolean).reverse().join(' -> ');
|
|
60
|
+
}
|
|
61
|
+
// save stack to re-use in test-hooks
|
|
62
|
+
const { stack: createMountStack } = new Error();
|
|
63
|
+
/**
|
|
64
|
+
* Flag whether `createMount` was called in a suite i.e. describe() block.
|
|
65
|
+
* For legacy reasons `createMount` might accidentally be called in a before(Each) hook.
|
|
66
|
+
*/
|
|
67
|
+
let wasCalledInSuite = false;
|
|
68
|
+
before(() => {
|
|
69
|
+
wasCalledInSuite = true;
|
|
70
|
+
});
|
|
71
|
+
beforeEach(() => {
|
|
72
|
+
if (!wasCalledInSuite) {
|
|
73
|
+
const error = new Error('Unable to run `before` hook for `createMount`. This usually indicates that `createMount` was called in a `before` hook instead of in a `describe()` block.');
|
|
74
|
+
error.stack = createMountStack;
|
|
75
|
+
throw error;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
beforeEach(function beforeEachMountTest() {
|
|
79
|
+
container = document.createElement('div');
|
|
80
|
+
container.setAttribute('data-test', computeTestName(this.currentTest));
|
|
81
|
+
document.body.insertBefore(container, document.body.firstChild);
|
|
82
|
+
});
|
|
83
|
+
afterEach(() => {
|
|
84
|
+
ReactDOMTestUtils.act(() => {
|
|
85
|
+
// eslint-disable-next-line react/no-deprecated
|
|
86
|
+
ReactDOM.unmountComponentAtNode(container);
|
|
87
|
+
});
|
|
88
|
+
container.parentElement.removeChild(container);
|
|
89
|
+
container = null;
|
|
90
|
+
});
|
|
91
|
+
const mountWithContext = function mountWithContext(node, localOptions = {}) {
|
|
92
|
+
const { strict = globalStrict, ...localEnzymeOptions } = localOptions;
|
|
93
|
+
if (container === null) {
|
|
94
|
+
throw new Error(`Tried to mount without setup. Mounting inside before() is not allowed. Try mounting in beforeEach or better: in each test`);
|
|
95
|
+
}
|
|
96
|
+
ReactDOMTestUtils.act(() => {
|
|
97
|
+
// eslint-disable-next-line react/no-deprecated
|
|
98
|
+
ReactDOM.unmountComponentAtNode(container);
|
|
99
|
+
});
|
|
100
|
+
// some tests require that no other components are in the tree
|
|
101
|
+
// for example when doing .instance(), .state() etc.
|
|
102
|
+
const wrapper = mount(strict == null ? node : React.createElement(Mode, { __element: node, __strict: Boolean(strict) }), {
|
|
103
|
+
attachTo: container,
|
|
104
|
+
...globalEnzymeOptions,
|
|
105
|
+
...localEnzymeOptions,
|
|
106
|
+
});
|
|
107
|
+
const originalUnmount = wrapper.unmount;
|
|
108
|
+
wrapper.unmount = () => {
|
|
109
|
+
// flush effect cleanup functions
|
|
110
|
+
ReactDOMTestUtils.act(() => {
|
|
111
|
+
originalUnmount.call(wrapper);
|
|
112
|
+
});
|
|
113
|
+
return wrapper;
|
|
114
|
+
};
|
|
115
|
+
return wrapper;
|
|
116
|
+
};
|
|
117
|
+
return mountWithContext;
|
|
118
|
+
}
|
|
119
|
+
exports.default = createMount;
|
|
120
|
+
//# sourceMappingURL=createMount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createMount.js","sourceRoot":"","sources":["../src/createMount.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,6CAA+B;AAC/B,oDAAsC;AACtC,wEAA0D;AAE1D,mCAAkE;AAYlE;;;;;;GAMG;AACH,2DAA2D;AAC3D,MAAM,IAAK,SAAQ,KAAK,CAAC,SAAoB;IAC3C,MAAM;QACJ,mDAAmD;QACnD,gEAAgE;QAChE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACrD,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;QAE/D,OAAO,oBAAC,SAAS,QAAE,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CAAa,CAAC;IACvE,CAAC;CACF;AAMD,uCAAuC;AACvC,SAAwB,WAAW,CAAC,UAA8B,EAAE;IAClE,MAAM,EAAE,KAAK,GAAG,cAAW,EAAE,MAAM,EAAE,YAAY,GAAG,IAAI,EAAE,GAAG,mBAAmB,EAAE,GAAG,OAAO,CAAC;IAE7F,IAAI,SAAS,GAAuB,IAAI,CAAC;IAEzC,SAAS,eAAe,CAAC,IAAsB;QAC7C,IAAI,OAAO,GAA6B,IAAI,CAAC;QAC7C,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,OAAO,OAAO,IAAI,IAAI,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;QAC3B,CAAC;QAED,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAA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AAkB,EAAE,GAAG,YAAY,CAAC;QAEtE,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CACb,2HAA2H,CAC5H,CAAC;QACJ,CAAC;QACD,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE;YACzB,+CAA+C;YAC/C,QAAQ,CAAC,sBAAsB,CAAC,SAAU,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;QAEH,8DAA8D;QAC9D,oDAAoD;QACpD,MAAM,OAAO,GAAG,KAAK,CACnB,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,IAAI,IAAC,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,GAAI,EAC5E;YACE,QAAQ,EAAE,SAAS;YACnB,GAAG,mBAAmB;YACtB,GAAG,kBAAkB;SACtB,CACF,CAAC;QACF,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;QAExC,OAAO,CAAC,OAAO,GAAG,GAAG,EAAE;YACrB,iCAAiC;YACjC,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE;gBACzB,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAChC,CAAC,CAAC,CAAC;YAEH,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA9FD,8BA8FC"}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { cleanup, queries, queryHelpers, RenderResult } from '@testing-library/react/pure';
|
|
3
|
+
declare function queryAllDescriptionsOf(baseElement: HTMLElement, element: Element): HTMLElement[];
|
|
4
|
+
declare const customQueries: {
|
|
5
|
+
queryDescriptionOf: queryHelpers.QueryBy<[Element]>;
|
|
6
|
+
queryAllDescriptionsOf: typeof queryAllDescriptionsOf;
|
|
7
|
+
getDescriptionOf: queryHelpers.GetBy<[Element]>;
|
|
8
|
+
getAllDescriptionsOf: queryHelpers.GetAllBy<[Element]>;
|
|
9
|
+
findDescriptionOf: queryHelpers.FindBy<[Element]>;
|
|
10
|
+
findAllDescriptionsOf: queryHelpers.FindAllBy<[Element]>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use `queryAllByTestId` instead
|
|
13
|
+
*/
|
|
14
|
+
queryAllByMuiTest: (container: HTMLElement, id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use `queryByTestId` instead
|
|
17
|
+
*/
|
|
18
|
+
queryByMuiTest: queryHelpers.QueryBy<[dataMuiTest: import("@testing-library/react/pure").Matcher]>;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use `getAllByTestId` instead
|
|
21
|
+
*/
|
|
22
|
+
getAllByMuiTest: queryHelpers.GetAllBy<[dataMuiTest: import("@testing-library/react/pure").Matcher]>;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Use `getByTestId` instead
|
|
25
|
+
*/
|
|
26
|
+
getByMuiTest: queryHelpers.GetBy<[dataMuiTest: import("@testing-library/react/pure").Matcher]>;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Use `findAllByTestId` instead
|
|
29
|
+
*/
|
|
30
|
+
findAllByMuiTest: queryHelpers.FindAllBy<[dataMuiTest: import("@testing-library/react/pure").Matcher]>;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Use `findByTestId` instead
|
|
33
|
+
*/
|
|
34
|
+
findByMuiTest: queryHelpers.FindBy<[dataMuiTest: import("@testing-library/react/pure").Matcher]>;
|
|
35
|
+
};
|
|
36
|
+
interface RenderConfiguration {
|
|
37
|
+
/**
|
|
38
|
+
* https://testing-library.com/docs/react-testing-library/api#container
|
|
39
|
+
*/
|
|
40
|
+
container?: HTMLElement;
|
|
41
|
+
/**
|
|
42
|
+
* if true does not cleanup before mount
|
|
43
|
+
*/
|
|
44
|
+
disableUnmount?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* wrap in React.StrictMode?
|
|
47
|
+
*/
|
|
48
|
+
strict?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Set to `true` if the test fails due to [Strict Effects](https://github.com/reactwg/react-18/discussions/19).
|
|
51
|
+
*/
|
|
52
|
+
strictEffects?: boolean;
|
|
53
|
+
wrapper: React.JSXElementConstructor<{
|
|
54
|
+
children?: React.ReactNode;
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
57
|
+
export type RenderOptions = Partial<RenderConfiguration>;
|
|
58
|
+
export interface MuiRenderResult extends RenderResult<typeof queries & typeof customQueries> {
|
|
59
|
+
forceUpdate(): void;
|
|
60
|
+
/**
|
|
61
|
+
* convenience helper. Better than repeating all props.
|
|
62
|
+
*/
|
|
63
|
+
setProps(props: object): void;
|
|
64
|
+
}
|
|
65
|
+
export interface MuiRenderToStringResult {
|
|
66
|
+
container: HTMLElement;
|
|
67
|
+
hydrate(): MuiRenderResult;
|
|
68
|
+
}
|
|
69
|
+
interface Clock {
|
|
70
|
+
/**
|
|
71
|
+
* Runs all timers until there are no more remaining.
|
|
72
|
+
* WARNING: This may cause an infinite loop if a timeout constantly schedules another timeout.
|
|
73
|
+
* Prefer to to run only pending timers with `runToLast` and unmount your component directly.
|
|
74
|
+
*/
|
|
75
|
+
runAll(): void;
|
|
76
|
+
/**
|
|
77
|
+
* Runs only the currently pending timers.
|
|
78
|
+
*/
|
|
79
|
+
runToLast(): void;
|
|
80
|
+
/**
|
|
81
|
+
* Tick the clock ahead `timeoutMS` milliseconds.
|
|
82
|
+
* @param timeoutMS
|
|
83
|
+
*/
|
|
84
|
+
tick(timeoutMS: number): void;
|
|
85
|
+
/**
|
|
86
|
+
* Returns true if we're running with "real" i.e. native timers.
|
|
87
|
+
*/
|
|
88
|
+
isReal(): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Runs the current test suite (i.e. `describe` block) with fake timers.
|
|
91
|
+
*/
|
|
92
|
+
withFakeTimers(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Restore the real timer
|
|
95
|
+
*/
|
|
96
|
+
restore(): void;
|
|
97
|
+
}
|
|
98
|
+
type ClockConfig = undefined | number | Date;
|
|
99
|
+
interface Renderer {
|
|
100
|
+
clock: Clock;
|
|
101
|
+
render(element: React.ReactElement<any>, options?: RenderOptions): MuiRenderResult;
|
|
102
|
+
renderToString(element: React.ReactElement<any>, options?: RenderOptions): MuiRenderToStringResult;
|
|
103
|
+
}
|
|
104
|
+
export interface CreateRendererOptions extends Pick<RenderOptions, 'strict' | 'strictEffects'> {
|
|
105
|
+
/**
|
|
106
|
+
* @default 'real'
|
|
107
|
+
*/
|
|
108
|
+
clock?: 'fake' | 'real';
|
|
109
|
+
clockConfig?: ClockConfig;
|
|
110
|
+
}
|
|
111
|
+
export declare function createRenderer(globalOptions?: CreateRendererOptions): Renderer;
|
|
112
|
+
declare const fireEvent: import("@testing-library/react/pure").FireFunction & import("@testing-library/react/pure").FireObject;
|
|
113
|
+
export declare function fireTouchChangedEvent(target: Element, type: 'touchstart' | 'touchmove' | 'touchend', options: {
|
|
114
|
+
changedTouches: Array<Pick<TouchInit, 'clientX' | 'clientY'>>;
|
|
115
|
+
}): void;
|
|
116
|
+
declare function act<T>(callback: () => T | Promise<T>): Promise<T>;
|
|
117
|
+
declare function act(callback: () => void): void;
|
|
118
|
+
export * from '@testing-library/react/pure';
|
|
119
|
+
export { act, cleanup, fireEvent };
|
|
120
|
+
export declare const screen: {
|
|
121
|
+
getByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined): T;
|
|
122
|
+
getAllByLabelText<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined): T_1[];
|
|
123
|
+
queryByLabelText<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined): T_2 | null;
|
|
124
|
+
queryAllByLabelText<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined): T_3[];
|
|
125
|
+
findByLabelText<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_4>;
|
|
126
|
+
findAllByLabelText<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_5[]>;
|
|
127
|
+
getByPlaceholderText<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_6;
|
|
128
|
+
getAllByPlaceholderText<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_7[];
|
|
129
|
+
queryByPlaceholderText<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_8 | null;
|
|
130
|
+
queryAllByPlaceholderText<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_9[];
|
|
131
|
+
findByPlaceholderText<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_10>;
|
|
132
|
+
findAllByPlaceholderText<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_11[]>;
|
|
133
|
+
getByText<T_12 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined): T_12;
|
|
134
|
+
getAllByText<T_13 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined): T_13[];
|
|
135
|
+
queryByText<T_14 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined): T_14 | null;
|
|
136
|
+
queryAllByText<T_15 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined): T_15[];
|
|
137
|
+
findByText<T_16 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_16>;
|
|
138
|
+
findAllByText<T_17 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_17[]>;
|
|
139
|
+
getByAltText<T_18 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_18;
|
|
140
|
+
getAllByAltText<T_19 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_19[];
|
|
141
|
+
queryByAltText<T_20 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_20 | null;
|
|
142
|
+
queryAllByAltText<T_21 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_21[];
|
|
143
|
+
findByAltText<T_22 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_22>;
|
|
144
|
+
findAllByAltText<T_23 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_23[]>;
|
|
145
|
+
getByTitle<T_24 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_24;
|
|
146
|
+
getAllByTitle<T_25 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_25[];
|
|
147
|
+
queryByTitle<T_26 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_26 | null;
|
|
148
|
+
queryAllByTitle<T_27 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_27[];
|
|
149
|
+
findByTitle<T_28 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_28>;
|
|
150
|
+
findAllByTitle<T_29 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_29[]>;
|
|
151
|
+
getByDisplayValue<T_30 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_30;
|
|
152
|
+
getAllByDisplayValue<T_31 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_31[];
|
|
153
|
+
queryByDisplayValue<T_32 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_32 | null;
|
|
154
|
+
queryAllByDisplayValue<T_33 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_33[];
|
|
155
|
+
findByDisplayValue<T_34 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_34>;
|
|
156
|
+
findAllByDisplayValue<T_35 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_35[]>;
|
|
157
|
+
getByRole<T_36 extends HTMLElement = HTMLElement>(role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_36;
|
|
158
|
+
getAllByRole<T_37 extends HTMLElement = HTMLElement>(role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_37[];
|
|
159
|
+
queryByRole<T_38 extends HTMLElement = HTMLElement>(role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_38 | null;
|
|
160
|
+
queryAllByRole<T_39 extends HTMLElement = HTMLElement>(role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_39[];
|
|
161
|
+
findByRole<T_40 extends HTMLElement = HTMLElement>(role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_40>;
|
|
162
|
+
findAllByRole<T_41 extends HTMLElement = HTMLElement>(role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_41[]>;
|
|
163
|
+
getByTestId<T_42 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_42;
|
|
164
|
+
getAllByTestId<T_43 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_43[];
|
|
165
|
+
queryByTestId<T_44 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_44 | null;
|
|
166
|
+
queryAllByTestId<T_45 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined): T_45[];
|
|
167
|
+
findByTestId<T_46 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_46>;
|
|
168
|
+
findAllByTestId<T_47 extends HTMLElement = HTMLElement>(id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined): Promise<T_47[]>;
|
|
169
|
+
} & {
|
|
170
|
+
queryDescriptionOf: (args_0: Element) => HTMLElement | null;
|
|
171
|
+
queryAllDescriptionsOf: (element: Element) => HTMLElement[];
|
|
172
|
+
getDescriptionOf: (args_0: Element) => HTMLElement;
|
|
173
|
+
getAllDescriptionsOf: (args_0: Element) => HTMLElement[];
|
|
174
|
+
findDescriptionOf: (args_0: Element, args_1?: undefined, args_2?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
175
|
+
findAllDescriptionsOf: (args_0: Element, args_1?: undefined, args_2?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
176
|
+
queryAllByMuiTest: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
177
|
+
queryByMuiTest: (dataMuiTest: import("@testing-library/react/pure").Matcher) => HTMLElement | null;
|
|
178
|
+
getAllByMuiTest: (dataMuiTest: import("@testing-library/react/pure").Matcher) => HTMLElement[];
|
|
179
|
+
getByMuiTest: (dataMuiTest: import("@testing-library/react/pure").Matcher) => HTMLElement;
|
|
180
|
+
findAllByMuiTest: (args_0: import("@testing-library/react/pure").Matcher, args_1?: undefined, args_2?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
181
|
+
findByMuiTest: (args_0: import("@testing-library/react/pure").Matcher, args_1?: undefined, args_2?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
182
|
+
getByLabelText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined) => HTMLElement;
|
|
183
|
+
getAllByLabelText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
184
|
+
queryByLabelText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
185
|
+
queryAllByLabelText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
186
|
+
findByLabelText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
187
|
+
findAllByLabelText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
188
|
+
getByPlaceholderText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement;
|
|
189
|
+
getAllByPlaceholderText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
190
|
+
queryByPlaceholderText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement | null;
|
|
191
|
+
queryAllByPlaceholderText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
192
|
+
findByPlaceholderText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
193
|
+
findAllByPlaceholderText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
194
|
+
getByText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined) => HTMLElement;
|
|
195
|
+
getAllByText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
196
|
+
queryByText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
197
|
+
queryAllByText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
198
|
+
findByText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
199
|
+
findAllByText: (id: import("@testing-library/react/pure").Matcher, options?: queryHelpers.SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
200
|
+
getByAltText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement;
|
|
201
|
+
getAllByAltText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
202
|
+
queryByAltText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement | null;
|
|
203
|
+
queryAllByAltText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
204
|
+
findByAltText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
205
|
+
findAllByAltText: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
206
|
+
getByTitle: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement;
|
|
207
|
+
getAllByTitle: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
208
|
+
queryByTitle: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement | null;
|
|
209
|
+
queryAllByTitle: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
210
|
+
findByTitle: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
211
|
+
findAllByTitle: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
212
|
+
getByDisplayValue: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement;
|
|
213
|
+
getAllByDisplayValue: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
214
|
+
queryByDisplayValue: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement | null;
|
|
215
|
+
queryAllByDisplayValue: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
216
|
+
findByDisplayValue: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
217
|
+
findAllByDisplayValue: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
218
|
+
getByRole: (role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement;
|
|
219
|
+
getAllByRole: (role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
|
|
220
|
+
queryByRole: (role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement | null;
|
|
221
|
+
queryAllByRole: (role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
|
|
222
|
+
findByRole: (role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
223
|
+
findAllByRole: (role: import("@testing-library/react/pure").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
224
|
+
getByTestId: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement;
|
|
225
|
+
getAllByTestId: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
226
|
+
queryByTestId: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement | null;
|
|
227
|
+
queryAllByTestId: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined) => HTMLElement[];
|
|
228
|
+
findByTestId: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
229
|
+
findAllByTestId: (id: import("@testing-library/react/pure").Matcher, options?: import("@testing-library/react/pure").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react/pure").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
230
|
+
};
|
|
231
|
+
//# sourceMappingURL=createRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRenderer.d.ts","sourceRoot":"","sources":["../src/createRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAGL,OAAO,EAEP,OAAO,EACP,YAAY,EAIZ,YAAY,EACb,MAAM,6BAA6B,CAAC;AAgJrC,iBAAS,sBAAsB,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAazF;AA8BD,QAAA,MAAM,aAAa;;;;;;;IAOjB;;OAEG;;IAEH;;OA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