@testing-library/react-native 11.2.0 → 11.4.0
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/README.md +3 -0
- package/build/act.js +9 -15
- package/build/act.js.map +1 -1
- package/build/cleanup.js +0 -4
- package/build/cleanup.js.map +1 -1
- package/build/config.d.ts +15 -0
- package/build/config.js +27 -0
- package/build/config.js.map +1 -0
- package/build/fireEvent.js +3 -33
- package/build/fireEvent.js.map +1 -1
- package/build/flushMicroTasks.js +0 -3
- package/build/flushMicroTasks.js.map +1 -1
- package/build/helpers/accessiblity.d.ts +3 -0
- package/build/helpers/accessiblity.js +14 -20
- package/build/helpers/accessiblity.js.map +1 -1
- package/build/helpers/component-tree.d.ts +15 -0
- package/build/helpers/component-tree.js +49 -15
- package/build/helpers/component-tree.js.map +1 -1
- package/build/helpers/debugDeep.d.ts +5 -1
- package/build/helpers/debugDeep.js +7 -6
- package/build/helpers/debugDeep.js.map +1 -1
- package/build/helpers/debugShallow.js +0 -5
- package/build/helpers/debugShallow.js.map +1 -1
- package/build/helpers/errors.js +4 -25
- package/build/helpers/errors.js.map +1 -1
- package/build/helpers/filterNodeByType.js +0 -2
- package/build/helpers/filterNodeByType.js.map +1 -1
- package/build/helpers/format.d.ts +5 -1
- package/build/helpers/format.js +17 -7
- package/build/helpers/format.js.map +1 -1
- package/build/helpers/matchers/accessibilityState.d.ts +3 -0
- package/build/helpers/matchers/accessibilityState.js +28 -0
- package/build/helpers/matchers/accessibilityState.js.map +1 -0
- package/build/helpers/matchers/matchArrayProp.js +0 -3
- package/build/helpers/matchers/matchArrayProp.js.map +1 -1
- package/build/helpers/matchers/matchObjectProp.js +0 -2
- package/build/helpers/matchers/matchObjectProp.js.map +1 -1
- package/build/helpers/matchers/matchStringProp.js +0 -3
- package/build/helpers/matchers/matchStringProp.js.map +1 -1
- package/build/helpers/stringValidation.js +0 -7
- package/build/helpers/stringValidation.js.map +1 -1
- package/build/helpers/timers.js +11 -22
- package/build/helpers/timers.js.map +1 -1
- package/build/index.flow.js +74 -21
- package/build/index.js +0 -6
- package/build/index.js.map +1 -1
- package/build/matches.js +2 -4
- package/build/matches.js.map +1 -1
- package/build/pure.d.ts +2 -0
- package/build/pure.js +13 -12
- package/build/pure.js.map +1 -1
- package/build/queries/a11yState.d.ts +1 -1
- package/build/queries/a11yState.js +15 -13
- package/build/queries/a11yState.js.map +1 -1
- package/build/queries/a11yValue.js +0 -8
- package/build/queries/a11yValue.js.map +1 -1
- package/build/queries/displayValue.js +7 -26
- package/build/queries/displayValue.js.map +1 -1
- package/build/queries/hintText.d.ts +19 -18
- package/build/queries/hintText.js +10 -11
- package/build/queries/hintText.js.map +1 -1
- package/build/queries/labelText.d.ts +7 -6
- package/build/queries/labelText.js +10 -11
- package/build/queries/labelText.js.map +1 -1
- package/build/queries/makeQueries.d.ts +3 -3
- package/build/queries/makeQueries.js +40 -24
- package/build/queries/makeQueries.js.map +1 -1
- package/build/queries/placeholderText.js +6 -25
- package/build/queries/placeholderText.js.map +1 -1
- package/build/queries/role.d.ts +3 -2
- package/build/queries/role.js +23 -13
- package/build/queries/role.js.map +1 -1
- package/build/queries/testId.js +0 -9
- package/build/queries/testId.js.map +1 -1
- package/build/queries/text.js +21 -45
- package/build/queries/text.js.map +1 -1
- package/build/queries/unsafeProps.js +2 -11
- package/build/queries/unsafeProps.js.map +1 -1
- package/build/queries/unsafeType.js +2 -9
- package/build/queries/unsafeType.js.map +1 -1
- package/build/react-versions.js +0 -4
- package/build/react-versions.js.map +1 -1
- package/build/render.d.ts +32 -31
- package/build/render.js +21 -31
- package/build/render.js.map +1 -1
- package/build/renderHook.js +2 -12
- package/build/renderHook.js.map +1 -1
- package/build/screen.js +0 -6
- package/build/screen.js.map +1 -1
- package/build/shallow.js +0 -6
- package/build/shallow.js.map +1 -1
- package/build/waitFor.js +31 -53
- package/build/waitFor.js.map +1 -1
- package/build/waitForElementToBeRemoved.js +2 -11
- package/build/waitForElementToBeRemoved.js.map +1 -1
- package/build/within.d.ts +30 -30
- package/build/within.js +2 -14
- package/build/within.js.map +1 -1
- package/package.json +18 -17
- package/typings/index.flow.js +74 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringValidation.js","names":["validateStringsRenderedWithinText","rendererJSON","Array","isArray","forEach","validateStringsRenderedWithinTextForNode","node","type","children","child","Error"],"sources":["../../src/helpers/stringValidation.ts"],"sourcesContent":["import { ReactTestRendererNode } from 'react-test-renderer';\n\nexport const validateStringsRenderedWithinText = (\n rendererJSON: ReactTestRendererNode | Array<ReactTestRendererNode> | null\n) => {\n if (!rendererJSON) return;\n\n if (Array.isArray(rendererJSON)) {\n rendererJSON.forEach(validateStringsRenderedWithinTextForNode);\n return;\n }\n\n return validateStringsRenderedWithinTextForNode(rendererJSON);\n};\n\nconst validateStringsRenderedWithinTextForNode = (\n node: ReactTestRendererNode\n) => {\n if (typeof node === 'string') {\n return;\n }\n\n if (node.type !== 'Text') {\n node.children?.forEach((child) => {\n if (typeof child === 'string') {\n throw new Error(\n `Invariant Violation: Text strings must be rendered within a <Text> component. Detected attempt to render \"${child}\" string within a <${node.type}> component.`\n );\n }\n });\n }\n\n if (node.children) {\n node.children.forEach(validateStringsRenderedWithinTextForNode);\n }\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stringValidation.js","names":["validateStringsRenderedWithinText","rendererJSON","Array","isArray","forEach","validateStringsRenderedWithinTextForNode","node","type","children","child","Error"],"sources":["../../src/helpers/stringValidation.ts"],"sourcesContent":["import { ReactTestRendererNode } from 'react-test-renderer';\n\nexport const validateStringsRenderedWithinText = (\n rendererJSON: ReactTestRendererNode | Array<ReactTestRendererNode> | null\n) => {\n if (!rendererJSON) return;\n\n if (Array.isArray(rendererJSON)) {\n rendererJSON.forEach(validateStringsRenderedWithinTextForNode);\n return;\n }\n\n return validateStringsRenderedWithinTextForNode(rendererJSON);\n};\n\nconst validateStringsRenderedWithinTextForNode = (\n node: ReactTestRendererNode\n) => {\n if (typeof node === 'string') {\n return;\n }\n\n if (node.type !== 'Text') {\n node.children?.forEach((child) => {\n if (typeof child === 'string') {\n throw new Error(\n `Invariant Violation: Text strings must be rendered within a <Text> component. Detected attempt to render \"${child}\" string within a <${node.type}> component.`\n );\n }\n });\n }\n\n if (node.children) {\n node.children.forEach(validateStringsRenderedWithinTextForNode);\n }\n};\n"],"mappings":";;;;;;AAEO,MAAMA,iCAAiC,GAC5CC,YAAyE,IACtE;EACH,IAAI,CAACA,YAAY,EAAE;EAEnB,IAAIC,KAAK,CAACC,OAAO,CAACF,YAAY,CAAC,EAAE;IAC/BA,YAAY,CAACG,OAAO,CAACC,wCAAwC,CAAC;IAC9D;EACF;EAEA,OAAOA,wCAAwC,CAACJ,YAAY,CAAC;AAC/D,CAAC;AAAC;AAEF,MAAMI,wCAAwC,GAC5CC,IAA2B,IACxB;EACH,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5B;EACF;EAEA,IAAIA,IAAI,CAACC,IAAI,KAAK,MAAM,EAAE;IACxBD,IAAI,CAACE,QAAQ,EAAEJ,OAAO,CAAEK,KAAK,IAAK;MAChC,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;QAC7B,MAAM,IAAIC,KAAK,CACZ,6GAA4GD,KAAM,sBAAqBH,IAAI,CAACC,IAAK,cAAa,CAChK;MACH;IACF,CAAC,CAAC;EACJ;EAEA,IAAID,IAAI,CAACE,QAAQ,EAAE;IACjBF,IAAI,CAACE,QAAQ,CAACJ,OAAO,CAACC,wCAAwC,CAAC;EACjE;AACF,CAAC"}
|
package/build/helpers/timers.js
CHANGED
|
@@ -7,53 +7,46 @@ exports.jestFakeTimersAreEnabled = exports.clearTimeout = void 0;
|
|
|
7
7
|
exports.runWithRealTimers = runWithRealTimers;
|
|
8
8
|
exports.setTimeout = exports.setImmediate = void 0;
|
|
9
9
|
// Most content of this file sourced directly from https://github.com/testing-library/dom-testing-library/blob/main/src/helpers.js
|
|
10
|
-
|
|
11
10
|
/* globals jest */
|
|
12
11
|
const globalObj = typeof window === 'undefined' ? global : window;
|
|
13
|
-
|
|
14
12
|
// Currently this fn only supports jest timers, but it could support other test runners in the future.
|
|
15
13
|
function runWithRealTimers(callback) {
|
|
16
14
|
const fakeTimersType = getJestFakeTimersType();
|
|
17
|
-
|
|
18
15
|
if (fakeTimersType) {
|
|
19
16
|
jest.useRealTimers();
|
|
20
17
|
}
|
|
21
|
-
|
|
22
18
|
const callbackReturnValue = callback();
|
|
23
|
-
|
|
24
19
|
if (fakeTimersType) {
|
|
25
20
|
const fakeTimersConfig = getFakeTimersConfigFromType(fakeTimersType);
|
|
26
21
|
jest.useFakeTimers(fakeTimersConfig);
|
|
27
22
|
}
|
|
28
|
-
|
|
29
23
|
return callbackReturnValue;
|
|
30
24
|
}
|
|
31
|
-
|
|
32
25
|
function getJestFakeTimersType() {
|
|
33
26
|
// istanbul ignore if
|
|
34
|
-
if (typeof jest === 'undefined' || typeof globalObj.setTimeout === 'undefined') {
|
|
27
|
+
if (typeof jest === 'undefined' || typeof globalObj.setTimeout === 'undefined' || process.env.RNTL_SKIP_AUTO_DETECT_FAKE_TIMERS) {
|
|
35
28
|
return null;
|
|
36
29
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
typeof globalObj.setTimeout._isMockFunction !== 'undefined' &&
|
|
30
|
+
if (
|
|
31
|
+
// @ts-expect-error jest mutates setTimeout
|
|
32
|
+
typeof globalObj.setTimeout._isMockFunction !== 'undefined' &&
|
|
33
|
+
// @ts-expect-error jest mutates setTimeout
|
|
40
34
|
globalObj.setTimeout._isMockFunction) {
|
|
41
35
|
return 'legacy';
|
|
42
36
|
}
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
if (
|
|
38
|
+
// @ts-expect-error jest mutates setTimeout
|
|
45
39
|
typeof globalObj.setTimeout.clock !== 'undefined' && typeof jest.getRealSystemTime !== 'undefined') {
|
|
46
40
|
try {
|
|
47
41
|
// jest.getRealSystemTime is only supported for Jest's `modern` fake timers and otherwise throws
|
|
48
42
|
jest.getRealSystemTime();
|
|
49
43
|
return 'modern';
|
|
50
|
-
} catch {
|
|
44
|
+
} catch {
|
|
45
|
+
// not using Jest's modern fake timers
|
|
51
46
|
}
|
|
52
47
|
}
|
|
53
|
-
|
|
54
48
|
return null;
|
|
55
49
|
}
|
|
56
|
-
|
|
57
50
|
function getFakeTimersConfigFromType(type) {
|
|
58
51
|
return type === 'legacy' ? {
|
|
59
52
|
legacyFakeTimers: true
|
|
@@ -61,16 +54,13 @@ function getFakeTimersConfigFromType(type) {
|
|
|
61
54
|
legacyFakeTimers: false
|
|
62
55
|
};
|
|
63
56
|
}
|
|
57
|
+
const jestFakeTimersAreEnabled = () => Boolean(getJestFakeTimersType());
|
|
64
58
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
// we only run our tests in node, and setImmediate is supported in node.
|
|
68
60
|
exports.jestFakeTimersAreEnabled = jestFakeTimersAreEnabled;
|
|
69
|
-
|
|
70
61
|
function setImmediatePolyfill(fn) {
|
|
71
62
|
return globalObj.setTimeout(fn, 0);
|
|
72
63
|
}
|
|
73
|
-
|
|
74
64
|
function bindTimeFunctions() {
|
|
75
65
|
return {
|
|
76
66
|
clearTimeoutFn: globalObj.clearTimeout,
|
|
@@ -78,7 +68,6 @@ function bindTimeFunctions() {
|
|
|
78
68
|
setTimeoutFn: globalObj.setTimeout
|
|
79
69
|
};
|
|
80
70
|
}
|
|
81
|
-
|
|
82
71
|
const {
|
|
83
72
|
clearTimeoutFn,
|
|
84
73
|
setImmediateFn,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timers.js","names":["globalObj","window","global","runWithRealTimers","callback","fakeTimersType","getJestFakeTimersType","jest","useRealTimers","callbackReturnValue","fakeTimersConfig","getFakeTimersConfigFromType","useFakeTimers","setTimeout","_isMockFunction","clock","getRealSystemTime","type","legacyFakeTimers","jestFakeTimersAreEnabled","Boolean","setImmediatePolyfill","fn","bindTimeFunctions","clearTimeoutFn","clearTimeout","setImmediateFn","setImmediate","setTimeoutFn"],"sources":["../../src/helpers/timers.ts"],"sourcesContent":["// Most content of this file sourced directly from https://github.com/testing-library/dom-testing-library/blob/main/src/helpers.js\n/* globals jest */\nconst globalObj = typeof window === 'undefined' ? global : window;\n\ntype FakeTimersTypes = 'modern' | 'legacy';\n\n// Currently this fn only supports jest timers, but it could support other test runners in the future.\nfunction runWithRealTimers<T>(callback: () => T): T {\n const fakeTimersType = getJestFakeTimersType();\n if (fakeTimersType) {\n jest.useRealTimers();\n }\n\n const callbackReturnValue = callback();\n\n if (fakeTimersType) {\n const fakeTimersConfig = getFakeTimersConfigFromType(fakeTimersType);\n jest.useFakeTimers(fakeTimersConfig);\n }\n\n return callbackReturnValue;\n}\n\nfunction getJestFakeTimersType(): FakeTimersTypes | null {\n // istanbul ignore if\n if (\n typeof jest === 'undefined' ||\n typeof globalObj.setTimeout === 'undefined'\n ) {\n return null;\n }\n\n if (\n // @ts-expect-error jest mutates setTimeout\n typeof globalObj.setTimeout._isMockFunction !== 'undefined' &&\n // @ts-expect-error jest mutates setTimeout\n globalObj.setTimeout._isMockFunction\n ) {\n return 'legacy';\n }\n\n if (\n // @ts-expect-error jest mutates setTimeout\n typeof globalObj.setTimeout.clock !== 'undefined' &&\n typeof jest.getRealSystemTime !== 'undefined'\n ) {\n try {\n // jest.getRealSystemTime is only supported for Jest's `modern` fake timers and otherwise throws\n jest.getRealSystemTime();\n return 'modern';\n } catch {\n // not using Jest's modern fake timers\n }\n }\n\n return null;\n}\n\nfunction getFakeTimersConfigFromType(type: FakeTimersTypes) {\n return type === 'legacy'\n ? { legacyFakeTimers: true }\n : { legacyFakeTimers: false };\n}\n\nconst jestFakeTimersAreEnabled = (): boolean =>\n Boolean(getJestFakeTimersType());\n\n// we only run our tests in node, and setImmediate is supported in node.\nfunction setImmediatePolyfill(fn: Function) {\n return globalObj.setTimeout(fn, 0);\n}\n\ntype BindTimeFunctions = {\n clearTimeoutFn: typeof clearTimeout;\n setImmediateFn: typeof setImmediate;\n setTimeoutFn: typeof setTimeout;\n};\n\nfunction bindTimeFunctions(): BindTimeFunctions {\n return {\n clearTimeoutFn: globalObj.clearTimeout,\n setImmediateFn: globalObj.setImmediate || setImmediatePolyfill,\n setTimeoutFn: globalObj.setTimeout,\n };\n}\n\nconst { clearTimeoutFn, setImmediateFn, setTimeoutFn } = runWithRealTimers(\n bindTimeFunctions\n) as BindTimeFunctions;\n\nexport {\n runWithRealTimers,\n jestFakeTimersAreEnabled,\n clearTimeoutFn as clearTimeout,\n setImmediateFn as setImmediate,\n setTimeoutFn as setTimeout,\n};\n"],"mappings":";;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"timers.js","names":["globalObj","window","global","runWithRealTimers","callback","fakeTimersType","getJestFakeTimersType","jest","useRealTimers","callbackReturnValue","fakeTimersConfig","getFakeTimersConfigFromType","useFakeTimers","setTimeout","process","env","RNTL_SKIP_AUTO_DETECT_FAKE_TIMERS","_isMockFunction","clock","getRealSystemTime","type","legacyFakeTimers","jestFakeTimersAreEnabled","Boolean","setImmediatePolyfill","fn","bindTimeFunctions","clearTimeoutFn","clearTimeout","setImmediateFn","setImmediate","setTimeoutFn"],"sources":["../../src/helpers/timers.ts"],"sourcesContent":["// Most content of this file sourced directly from https://github.com/testing-library/dom-testing-library/blob/main/src/helpers.js\n/* globals jest */\nconst globalObj = typeof window === 'undefined' ? global : window;\n\ntype FakeTimersTypes = 'modern' | 'legacy';\n\n// Currently this fn only supports jest timers, but it could support other test runners in the future.\nfunction runWithRealTimers<T>(callback: () => T): T {\n const fakeTimersType = getJestFakeTimersType();\n if (fakeTimersType) {\n jest.useRealTimers();\n }\n\n const callbackReturnValue = callback();\n\n if (fakeTimersType) {\n const fakeTimersConfig = getFakeTimersConfigFromType(fakeTimersType);\n jest.useFakeTimers(fakeTimersConfig);\n }\n\n return callbackReturnValue;\n}\n\nfunction getJestFakeTimersType(): FakeTimersTypes | null {\n // istanbul ignore if\n if (\n typeof jest === 'undefined' ||\n typeof globalObj.setTimeout === 'undefined' ||\n process.env.RNTL_SKIP_AUTO_DETECT_FAKE_TIMERS\n ) {\n return null;\n }\n\n if (\n // @ts-expect-error jest mutates setTimeout\n typeof globalObj.setTimeout._isMockFunction !== 'undefined' &&\n // @ts-expect-error jest mutates setTimeout\n globalObj.setTimeout._isMockFunction\n ) {\n return 'legacy';\n }\n\n if (\n // @ts-expect-error jest mutates setTimeout\n typeof globalObj.setTimeout.clock !== 'undefined' &&\n typeof jest.getRealSystemTime !== 'undefined'\n ) {\n try {\n // jest.getRealSystemTime is only supported for Jest's `modern` fake timers and otherwise throws\n jest.getRealSystemTime();\n return 'modern';\n } catch {\n // not using Jest's modern fake timers\n }\n }\n\n return null;\n}\n\nfunction getFakeTimersConfigFromType(type: FakeTimersTypes) {\n return type === 'legacy'\n ? { legacyFakeTimers: true }\n : { legacyFakeTimers: false };\n}\n\nconst jestFakeTimersAreEnabled = (): boolean =>\n Boolean(getJestFakeTimersType());\n\n// we only run our tests in node, and setImmediate is supported in node.\nfunction setImmediatePolyfill(fn: Function) {\n return globalObj.setTimeout(fn, 0);\n}\n\ntype BindTimeFunctions = {\n clearTimeoutFn: typeof clearTimeout;\n setImmediateFn: typeof setImmediate;\n setTimeoutFn: typeof setTimeout;\n};\n\nfunction bindTimeFunctions(): BindTimeFunctions {\n return {\n clearTimeoutFn: globalObj.clearTimeout,\n setImmediateFn: globalObj.setImmediate || setImmediatePolyfill,\n setTimeoutFn: globalObj.setTimeout,\n };\n}\n\nconst { clearTimeoutFn, setImmediateFn, setTimeoutFn } = runWithRealTimers(\n bindTimeFunctions\n) as BindTimeFunctions;\n\nexport {\n runWithRealTimers,\n jestFakeTimersAreEnabled,\n clearTimeoutFn as clearTimeout,\n setImmediateFn as setImmediate,\n setTimeoutFn as setTimeout,\n};\n"],"mappings":";;;;;;;;AAAA;AACA;AACA,MAAMA,SAAS,GAAG,OAAOC,MAAM,KAAK,WAAW,GAAGC,MAAM,GAAGD,MAAM;AAIjE;AACA,SAASE,iBAAiB,CAAIC,QAAiB,EAAK;EAClD,MAAMC,cAAc,GAAGC,qBAAqB,EAAE;EAC9C,IAAID,cAAc,EAAE;IAClBE,IAAI,CAACC,aAAa,EAAE;EACtB;EAEA,MAAMC,mBAAmB,GAAGL,QAAQ,EAAE;EAEtC,IAAIC,cAAc,EAAE;IAClB,MAAMK,gBAAgB,GAAGC,2BAA2B,CAACN,cAAc,CAAC;IACpEE,IAAI,CAACK,aAAa,CAACF,gBAAgB,CAAC;EACtC;EAEA,OAAOD,mBAAmB;AAC5B;AAEA,SAASH,qBAAqB,GAA2B;EACvD;EACA,IACE,OAAOC,IAAI,KAAK,WAAW,IAC3B,OAAOP,SAAS,CAACa,UAAU,KAAK,WAAW,IAC3CC,OAAO,CAACC,GAAG,CAACC,iCAAiC,EAC7C;IACA,OAAO,IAAI;EACb;EAEA;EACE;EACA,OAAOhB,SAAS,CAACa,UAAU,CAACI,eAAe,KAAK,WAAW;EAC3D;EACAjB,SAAS,CAACa,UAAU,CAACI,eAAe,EACpC;IACA,OAAO,QAAQ;EACjB;EAEA;EACE;EACA,OAAOjB,SAAS,CAACa,UAAU,CAACK,KAAK,KAAK,WAAW,IACjD,OAAOX,IAAI,CAACY,iBAAiB,KAAK,WAAW,EAC7C;IACA,IAAI;MACF;MACAZ,IAAI,CAACY,iBAAiB,EAAE;MACxB,OAAO,QAAQ;IACjB,CAAC,CAAC,MAAM;MACN;IACF;EACF;EAEA,OAAO,IAAI;AACb;AAEA,SAASR,2BAA2B,CAACS,IAAqB,EAAE;EAC1D,OAAOA,IAAI,KAAK,QAAQ,GACpB;IAAEC,gBAAgB,EAAE;EAAK,CAAC,GAC1B;IAAEA,gBAAgB,EAAE;EAAM,CAAC;AACjC;AAEA,MAAMC,wBAAwB,GAAG,MAC/BC,OAAO,CAACjB,qBAAqB,EAAE,CAAC;;AAElC;AAAA;AACA,SAASkB,oBAAoB,CAACC,EAAY,EAAE;EAC1C,OAAOzB,SAAS,CAACa,UAAU,CAACY,EAAE,EAAE,CAAC,CAAC;AACpC;AAQA,SAASC,iBAAiB,GAAsB;EAC9C,OAAO;IACLC,cAAc,EAAE3B,SAAS,CAAC4B,YAAY;IACtCC,cAAc,EAAE7B,SAAS,CAAC8B,YAAY,IAAIN,oBAAoB;IAC9DO,YAAY,EAAE/B,SAAS,CAACa;EAC1B,CAAC;AACH;AAEA,MAAM;EAAEc,cAAc;EAAEE,cAAc;EAAEE;AAAa,CAAC,GAAG5B,iBAAiB,CACxEuB,iBAAiB,CACG;AAAC;AAAA;AAAA"}
|
package/build/index.flow.js
CHANGED
|
@@ -203,48 +203,82 @@ interface UnsafeByPropsQueries {
|
|
|
203
203
|
| [];
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
type ByRoleOptions = {
|
|
207
|
+
...A11yState,
|
|
208
|
+
name?: string,
|
|
209
|
+
};
|
|
209
210
|
|
|
210
211
|
interface A11yAPI {
|
|
211
212
|
// Label
|
|
212
|
-
getByLabelText: (matcher: TextMatch) => GetReturn;
|
|
213
|
-
getAllByLabelText: (
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
getByLabelText: (matcher: TextMatch, options?: TextMatchOptions) => GetReturn;
|
|
214
|
+
getAllByLabelText: (
|
|
215
|
+
matcher: TextMatch,
|
|
216
|
+
options?: TextMatchOptions
|
|
217
|
+
) => GetAllReturn;
|
|
218
|
+
queryByLabelText: (
|
|
219
|
+
matcher: TextMatch,
|
|
220
|
+
options?: TextMatchOptions
|
|
221
|
+
) => QueryReturn;
|
|
222
|
+
queryAllByLabelText: (
|
|
223
|
+
matcher: TextMatch,
|
|
224
|
+
options?: TextMatchOptions
|
|
225
|
+
) => QueryAllReturn;
|
|
216
226
|
findByLabelText: (
|
|
217
227
|
matcher: TextMatch,
|
|
228
|
+
queryOptions?: TextMatchOptions,
|
|
218
229
|
waitForOptions?: WaitForOptions
|
|
219
230
|
) => FindReturn;
|
|
220
231
|
findAllByLabelText: (
|
|
221
232
|
matcher: TextMatch,
|
|
233
|
+
queryOptions?: TextMatchOptions,
|
|
222
234
|
waitForOptions?: WaitForOptions
|
|
223
235
|
) => FindAllReturn;
|
|
224
236
|
|
|
225
237
|
// Hint
|
|
226
|
-
getByA11yHint: (matcher: TextMatch) => GetReturn;
|
|
227
|
-
getByHintText: (matcher: TextMatch) => GetReturn;
|
|
228
|
-
getAllByA11yHint: (
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
238
|
+
getByA11yHint: (matcher: TextMatch, options?: TextMatchOptions) => GetReturn;
|
|
239
|
+
getByHintText: (matcher: TextMatch, options?: TextMatchOptions) => GetReturn;
|
|
240
|
+
getAllByA11yHint: (
|
|
241
|
+
matcher: TextMatch,
|
|
242
|
+
options?: TextMatchOptions
|
|
243
|
+
) => GetAllReturn;
|
|
244
|
+
getAllByHintText: (
|
|
245
|
+
matcher: TextMatch,
|
|
246
|
+
options?: TextMatchOptions
|
|
247
|
+
) => GetAllReturn;
|
|
248
|
+
queryByA11yHint: (
|
|
249
|
+
matcher: TextMatch,
|
|
250
|
+
options?: TextMatchOptions
|
|
251
|
+
) => QueryReturn;
|
|
252
|
+
queryByHintText: (
|
|
253
|
+
matcher: TextMatch,
|
|
254
|
+
options?: TextMatchOptions
|
|
255
|
+
) => QueryReturn;
|
|
256
|
+
queryAllByA11yHint: (
|
|
257
|
+
matcher: TextMatch,
|
|
258
|
+
options?: TextMatchOptions
|
|
259
|
+
) => QueryAllReturn;
|
|
260
|
+
queryAllByHintText: (
|
|
261
|
+
matcher: TextMatch,
|
|
262
|
+
options?: TextMatchOptions
|
|
263
|
+
) => QueryAllReturn;
|
|
234
264
|
findByA11yHint: (
|
|
235
265
|
matcher: TextMatch,
|
|
266
|
+
queryOptions?: TextMatchOptions,
|
|
236
267
|
waitForOptions?: WaitForOptions
|
|
237
268
|
) => FindReturn;
|
|
238
269
|
findByHintText: (
|
|
239
270
|
matcher: TextMatch,
|
|
271
|
+
queryOptions?: TextMatchOptions,
|
|
240
272
|
waitForOptions?: WaitForOptions
|
|
241
273
|
) => FindReturn;
|
|
242
274
|
findAllByA11yHint: (
|
|
243
275
|
matcher: TextMatch,
|
|
276
|
+
queryOptions?: TextMatchOptions,
|
|
244
277
|
waitForOptions?: WaitForOptions
|
|
245
278
|
) => FindAllReturn;
|
|
246
279
|
findAllByHintText: (
|
|
247
280
|
matcher: TextMatch,
|
|
281
|
+
queryOptions?: TextMatchOptions,
|
|
248
282
|
waitForOptions?: WaitForOptions
|
|
249
283
|
) => FindAllReturn;
|
|
250
284
|
|
|
@@ -252,24 +286,24 @@ interface A11yAPI {
|
|
|
252
286
|
getByRole: (matcher: A11yRole | RegExp, role?: ByRoleOptions) => GetReturn;
|
|
253
287
|
getAllByRole: (
|
|
254
288
|
matcher: A11yRole | RegExp,
|
|
255
|
-
|
|
289
|
+
options?: ByRoleOptions
|
|
256
290
|
) => GetAllReturn;
|
|
257
291
|
queryByRole: (
|
|
258
292
|
matcher: A11yRole | RegExp,
|
|
259
|
-
|
|
293
|
+
options?: ByRoleOptions
|
|
260
294
|
) => QueryReturn;
|
|
261
295
|
queryAllByRole: (
|
|
262
296
|
matcher: A11yRole | RegExp,
|
|
263
|
-
|
|
297
|
+
options?: ByRoleOptions
|
|
264
298
|
) => QueryAllReturn;
|
|
265
299
|
findByRole: (
|
|
266
300
|
matcher: A11yRole | RegExp,
|
|
267
|
-
|
|
301
|
+
queryOptions?: ByRoleOptions,
|
|
268
302
|
waitForOptions?: WaitForOptions
|
|
269
303
|
) => FindReturn;
|
|
270
304
|
findAllByRole: (
|
|
271
305
|
matcher: A11yRole | RegExp,
|
|
272
|
-
|
|
306
|
+
queryOptions?: ByRoleOptions,
|
|
273
307
|
waitForOptions?: WaitForOptions
|
|
274
308
|
) => FindAllReturn;
|
|
275
309
|
|
|
@@ -306,8 +340,18 @@ interface Thenable {
|
|
|
306
340
|
then: (resolve: () => any, reject?: () => any) => any;
|
|
307
341
|
}
|
|
308
342
|
|
|
343
|
+
type MapPropsFunction = (
|
|
344
|
+
props: { [string]: mixed },
|
|
345
|
+
node: ReactTestRendererJSON
|
|
346
|
+
) => { [string]: mixed };
|
|
347
|
+
|
|
348
|
+
type DebugOptions = {
|
|
349
|
+
message?: string,
|
|
350
|
+
mapProps?: MapPropsFunction,
|
|
351
|
+
};
|
|
352
|
+
|
|
309
353
|
type Debug = {
|
|
310
|
-
(
|
|
354
|
+
(options?: DebugOptions | string): void,
|
|
311
355
|
shallow: (message?: string) => void,
|
|
312
356
|
};
|
|
313
357
|
|
|
@@ -346,6 +390,7 @@ declare module '@testing-library/react-native' {
|
|
|
346
390
|
declare interface RenderOptions {
|
|
347
391
|
wrapper?: React.ComponentType<any>;
|
|
348
392
|
createNodeMock?: (element: React.Element<any>) => any;
|
|
393
|
+
unstable_validateStringsRenderedWithinText?: boolean;
|
|
349
394
|
}
|
|
350
395
|
|
|
351
396
|
declare export var render: (
|
|
@@ -367,6 +412,14 @@ declare module '@testing-library/react-native' {
|
|
|
367
412
|
|
|
368
413
|
declare export var waitForElementToBeRemoved: WaitForElementToBeRemovedFunction;
|
|
369
414
|
|
|
415
|
+
declare interface Config {
|
|
416
|
+
asyncUtilTimeout: number;
|
|
417
|
+
defaultDebugOptions?: $Shape<DebugOptions>;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
declare export var configure: (options: $Shape<Config>) => void;
|
|
421
|
+
declare export var resetToDefaults: () => void;
|
|
422
|
+
|
|
370
423
|
declare export var act: (callback: () => void) => Thenable;
|
|
371
424
|
declare export var within: (instance: ReactTestInstance) => Queries;
|
|
372
425
|
declare export var getQueriesForElement: (
|
package/build/index.js
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
var _pure = require("./pure");
|
|
8
|
-
|
|
9
7
|
Object.keys(_pure).forEach(function (key) {
|
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
|
11
9
|
if (key in exports && exports[key] === _pure[key]) return;
|
|
@@ -16,11 +14,8 @@ Object.keys(_pure).forEach(function (key) {
|
|
|
16
14
|
}
|
|
17
15
|
});
|
|
18
16
|
});
|
|
19
|
-
|
|
20
17
|
var _flushMicroTasks = require("./flushMicroTasks");
|
|
21
|
-
|
|
22
18
|
var _act = require("./act");
|
|
23
|
-
|
|
24
19
|
if (typeof process === 'undefined' || !process.env?.RNTL_SKIP_AUTO_CLEANUP) {
|
|
25
20
|
// If we're running in a test runner that supports afterEach
|
|
26
21
|
// then we'll automatically run cleanup afterEach test
|
|
@@ -34,7 +29,6 @@ if (typeof process === 'undefined' || !process.env?.RNTL_SKIP_AUTO_CLEANUP) {
|
|
|
34
29
|
(0, _pure.cleanup)();
|
|
35
30
|
});
|
|
36
31
|
}
|
|
37
|
-
|
|
38
32
|
if (typeof beforeAll === 'function' && typeof afterAll === 'function') {
|
|
39
33
|
// This matches the behavior of React < 18.
|
|
40
34
|
let previousIsReactActEnvironment = (0, _act.getIsReactActEnvironment)();
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["process","env","RNTL_SKIP_AUTO_CLEANUP","afterEach","flushMicroTasks","cleanup","beforeAll","afterAll","previousIsReactActEnvironment","getIsReactActEnvironment","setReactActEnvironment"],"sources":["../src/index.ts"],"sourcesContent":["import { cleanup } from './pure';\nimport { flushMicroTasks } from './flushMicroTasks';\nimport { getIsReactActEnvironment, setReactActEnvironment } from './act';\n\nif (typeof process === 'undefined' || !process.env?.RNTL_SKIP_AUTO_CLEANUP) {\n // If we're running in a test runner that supports afterEach\n // then we'll automatically run cleanup afterEach test\n // this ensures that tests run in isolation from each other\n // if you don't like this then either import the `pure` module\n // or set the RNTL_SKIP_AUTO_CLEANUP env variable to 'true'.\n if (typeof afterEach === 'function') {\n // eslint-disable-next-line no-undef\n afterEach(async () => {\n await flushMicroTasks();\n cleanup();\n });\n }\n\n if (typeof beforeAll === 'function' && typeof afterAll === 'function') {\n // This matches the behavior of React < 18.\n let previousIsReactActEnvironment = getIsReactActEnvironment();\n beforeAll(() => {\n previousIsReactActEnvironment = getIsReactActEnvironment();\n setReactActEnvironment(true);\n });\n\n afterAll(() => {\n setReactActEnvironment(previousIsReactActEnvironment);\n });\n }\n}\n\nexport * from './pure';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["process","env","RNTL_SKIP_AUTO_CLEANUP","afterEach","flushMicroTasks","cleanup","beforeAll","afterAll","previousIsReactActEnvironment","getIsReactActEnvironment","setReactActEnvironment"],"sources":["../src/index.ts"],"sourcesContent":["import { cleanup } from './pure';\nimport { flushMicroTasks } from './flushMicroTasks';\nimport { getIsReactActEnvironment, setReactActEnvironment } from './act';\n\nif (typeof process === 'undefined' || !process.env?.RNTL_SKIP_AUTO_CLEANUP) {\n // If we're running in a test runner that supports afterEach\n // then we'll automatically run cleanup afterEach test\n // this ensures that tests run in isolation from each other\n // if you don't like this then either import the `pure` module\n // or set the RNTL_SKIP_AUTO_CLEANUP env variable to 'true'.\n if (typeof afterEach === 'function') {\n // eslint-disable-next-line no-undef\n afterEach(async () => {\n await flushMicroTasks();\n cleanup();\n });\n }\n\n if (typeof beforeAll === 'function' && typeof afterAll === 'function') {\n // This matches the behavior of React < 18.\n let previousIsReactActEnvironment = getIsReactActEnvironment();\n beforeAll(() => {\n previousIsReactActEnvironment = getIsReactActEnvironment();\n setReactActEnvironment(true);\n });\n\n afterAll(() => {\n setReactActEnvironment(previousIsReactActEnvironment);\n });\n }\n}\n\nexport * from './pure';\n"],"mappings":";;;;;AAAA;AAgCA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AA/BA;AACA;AAEA,IAAI,OAAOA,OAAO,KAAK,WAAW,IAAI,CAACA,OAAO,CAACC,GAAG,EAAEC,sBAAsB,EAAE;EAC1E;EACA;EACA;EACA;EACA;EACA,IAAI,OAAOC,SAAS,KAAK,UAAU,EAAE;IACnC;IACAA,SAAS,CAAC,YAAY;MACpB,MAAM,IAAAC,gCAAe,GAAE;MACvB,IAAAC,aAAO,GAAE;IACX,CAAC,CAAC;EACJ;EAEA,IAAI,OAAOC,SAAS,KAAK,UAAU,IAAI,OAAOC,QAAQ,KAAK,UAAU,EAAE;IACrE;IACA,IAAIC,6BAA6B,GAAG,IAAAC,6BAAwB,GAAE;IAC9DH,SAAS,CAAC,MAAM;MACdE,6BAA6B,GAAG,IAAAC,6BAAwB,GAAE;MAC1D,IAAAC,2BAAsB,EAAC,IAAI,CAAC;IAC9B,CAAC,CAAC;IAEFH,QAAQ,CAAC,MAAM;MACb,IAAAG,2BAAsB,EAACF,6BAA6B,CAAC;IACvD,CAAC,CAAC;EACJ;AACF"}
|
package/build/matches.js
CHANGED
|
@@ -5,22 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getDefaultNormalizer = getDefaultNormalizer;
|
|
7
7
|
exports.matches = matches;
|
|
8
|
-
|
|
9
8
|
function matches(matcher, text, normalizer = getDefaultNormalizer(), exact = true) {
|
|
10
9
|
if (typeof text !== 'string') {
|
|
11
10
|
return false;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
const normalizedText = normalizer(text);
|
|
15
|
-
|
|
16
13
|
if (typeof matcher === 'string') {
|
|
17
14
|
const normalizedMatcher = normalizer(matcher);
|
|
18
15
|
return exact ? normalizedText === normalizedMatcher : normalizedText.toLowerCase().includes(normalizedMatcher.toLowerCase());
|
|
19
16
|
} else {
|
|
17
|
+
// Reset state for global regexes: https://stackoverflow.com/a/1520839/484499
|
|
18
|
+
matcher.lastIndex = 0;
|
|
20
19
|
return matcher.test(normalizedText);
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
|
|
24
22
|
function getDefaultNormalizer({
|
|
25
23
|
trim = true,
|
|
26
24
|
collapseWhitespace = true
|
package/build/matches.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matches.js","names":["matches","matcher","text","normalizer","getDefaultNormalizer","exact","normalizedText","normalizedMatcher","toLowerCase","includes","test","trim","collapseWhitespace","replace"],"sources":["../src/matches.ts"],"sourcesContent":["export type NormalizerFn = (textToNormalize: string) => string;\nexport type TextMatch = string | RegExp;\n\nexport function matches(\n matcher: TextMatch,\n text: string,\n normalizer: NormalizerFn = getDefaultNormalizer(),\n exact: boolean = true\n): boolean {\n if (typeof text !== 'string') {\n return false;\n }\n\n const normalizedText = normalizer(text);\n if (typeof matcher === 'string') {\n const normalizedMatcher = normalizer(matcher);\n return exact\n ? normalizedText === normalizedMatcher\n : normalizedText.toLowerCase().includes(normalizedMatcher.toLowerCase());\n } else {\n return matcher.test(normalizedText);\n }\n}\n\ntype NormalizerConfig = {\n trim?: boolean;\n collapseWhitespace?: boolean;\n};\n\nexport function getDefaultNormalizer({\n trim = true,\n collapseWhitespace = true,\n}: NormalizerConfig = {}): NormalizerFn {\n return (text: string) => {\n let normalizedText = text;\n normalizedText = trim ? normalizedText.trim() : normalizedText;\n normalizedText = collapseWhitespace\n ? normalizedText.replace(/\\s+/g, ' ')\n : normalizedText;\n return normalizedText;\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"matches.js","names":["matches","matcher","text","normalizer","getDefaultNormalizer","exact","normalizedText","normalizedMatcher","toLowerCase","includes","lastIndex","test","trim","collapseWhitespace","replace"],"sources":["../src/matches.ts"],"sourcesContent":["export type NormalizerFn = (textToNormalize: string) => string;\nexport type TextMatch = string | RegExp;\n\nexport function matches(\n matcher: TextMatch,\n text: string,\n normalizer: NormalizerFn = getDefaultNormalizer(),\n exact: boolean = true\n): boolean {\n if (typeof text !== 'string') {\n return false;\n }\n\n const normalizedText = normalizer(text);\n if (typeof matcher === 'string') {\n const normalizedMatcher = normalizer(matcher);\n return exact\n ? normalizedText === normalizedMatcher\n : normalizedText.toLowerCase().includes(normalizedMatcher.toLowerCase());\n } else {\n // Reset state for global regexes: https://stackoverflow.com/a/1520839/484499\n matcher.lastIndex = 0;\n return matcher.test(normalizedText);\n }\n}\n\ntype NormalizerConfig = {\n trim?: boolean;\n collapseWhitespace?: boolean;\n};\n\nexport function getDefaultNormalizer({\n trim = true,\n collapseWhitespace = true,\n}: NormalizerConfig = {}): NormalizerFn {\n return (text: string) => {\n let normalizedText = text;\n normalizedText = trim ? normalizedText.trim() : normalizedText;\n normalizedText = collapseWhitespace\n ? normalizedText.replace(/\\s+/g, ' ')\n : normalizedText;\n return normalizedText;\n };\n}\n"],"mappings":";;;;;;;AAGO,SAASA,OAAO,CACrBC,OAAkB,EAClBC,IAAY,EACZC,UAAwB,GAAGC,oBAAoB,EAAE,EACjDC,KAAc,GAAG,IAAI,EACZ;EACT,IAAI,OAAOH,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAO,KAAK;EACd;EAEA,MAAMI,cAAc,GAAGH,UAAU,CAACD,IAAI,CAAC;EACvC,IAAI,OAAOD,OAAO,KAAK,QAAQ,EAAE;IAC/B,MAAMM,iBAAiB,GAAGJ,UAAU,CAACF,OAAO,CAAC;IAC7C,OAAOI,KAAK,GACRC,cAAc,KAAKC,iBAAiB,GACpCD,cAAc,CAACE,WAAW,EAAE,CAACC,QAAQ,CAACF,iBAAiB,CAACC,WAAW,EAAE,CAAC;EAC5E,CAAC,MAAM;IACL;IACAP,OAAO,CAACS,SAAS,GAAG,CAAC;IACrB,OAAOT,OAAO,CAACU,IAAI,CAACL,cAAc,CAAC;EACrC;AACF;AAOO,SAASF,oBAAoB,CAAC;EACnCQ,IAAI,GAAG,IAAI;EACXC,kBAAkB,GAAG;AACL,CAAC,GAAG,CAAC,CAAC,EAAgB;EACtC,OAAQX,IAAY,IAAK;IACvB,IAAII,cAAc,GAAGJ,IAAI;IACzBI,cAAc,GAAGM,IAAI,GAAGN,cAAc,CAACM,IAAI,EAAE,GAAGN,cAAc;IAC9DA,cAAc,GAAGO,kBAAkB,GAC/BP,cAAc,CAACQ,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,GACnCR,cAAc;IAClB,OAAOA,cAAc;EACvB,CAAC;AACH"}
|
package/build/pure.d.ts
CHANGED
|
@@ -11,8 +11,10 @@ import { screen } from './screen';
|
|
|
11
11
|
import { isInaccessible } from './helpers/accessiblity';
|
|
12
12
|
export type { RenderOptions, RenderResult, RenderResult as RenderAPI, } from './render';
|
|
13
13
|
export type { RenderHookOptions, RenderHookResult } from './renderHook';
|
|
14
|
+
export type { Config } from './config';
|
|
14
15
|
export { act };
|
|
15
16
|
export { cleanup };
|
|
17
|
+
export { configure, resetToDefaults } from './config';
|
|
16
18
|
export { fireEvent };
|
|
17
19
|
export { render };
|
|
18
20
|
export { waitFor };
|
package/build/pure.js
CHANGED
|
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "cleanup", {
|
|
|
15
15
|
return _cleanup.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "configure", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _config.configure;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
Object.defineProperty(exports, "fireEvent", {
|
|
19
25
|
enumerable: true,
|
|
20
26
|
get: function () {
|
|
@@ -51,6 +57,12 @@ Object.defineProperty(exports, "renderHook", {
|
|
|
51
57
|
return _renderHook.renderHook;
|
|
52
58
|
}
|
|
53
59
|
});
|
|
60
|
+
Object.defineProperty(exports, "resetToDefaults", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _config.resetToDefaults;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
54
66
|
Object.defineProperty(exports, "screen", {
|
|
55
67
|
enumerable: true,
|
|
56
68
|
get: function () {
|
|
@@ -75,28 +87,17 @@ Object.defineProperty(exports, "within", {
|
|
|
75
87
|
return _within.within;
|
|
76
88
|
}
|
|
77
89
|
});
|
|
78
|
-
|
|
79
90
|
var _act = _interopRequireDefault(require("./act"));
|
|
80
|
-
|
|
81
91
|
var _cleanup = _interopRequireDefault(require("./cleanup"));
|
|
82
|
-
|
|
83
92
|
var _fireEvent = _interopRequireDefault(require("./fireEvent"));
|
|
84
|
-
|
|
85
93
|
var _render = _interopRequireDefault(require("./render"));
|
|
86
|
-
|
|
87
94
|
var _waitFor = _interopRequireDefault(require("./waitFor"));
|
|
88
|
-
|
|
89
95
|
var _waitForElementToBeRemoved = _interopRequireDefault(require("./waitForElementToBeRemoved"));
|
|
90
|
-
|
|
91
96
|
var _within = require("./within");
|
|
92
|
-
|
|
93
97
|
var _matches = require("./matches");
|
|
94
|
-
|
|
95
98
|
var _renderHook = require("./renderHook");
|
|
96
|
-
|
|
97
99
|
var _screen = require("./screen");
|
|
98
|
-
|
|
99
100
|
var _accessiblity = require("./helpers/accessiblity");
|
|
100
|
-
|
|
101
|
+
var _config = require("./config");
|
|
101
102
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
102
103
|
//# sourceMappingURL=pure.js.map
|
package/build/pure.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pure.js","names":[],"sources":["../src/pure.ts"],"sourcesContent":["import act from './act';\nimport cleanup from './cleanup';\nimport fireEvent from './fireEvent';\nimport render from './render';\nimport waitFor from './waitFor';\nimport waitForElementToBeRemoved from './waitForElementToBeRemoved';\nimport { within, getQueriesForElement } from './within';\nimport { getDefaultNormalizer } from './matches';\nimport { renderHook } from './renderHook';\nimport { screen } from './screen';\nimport { isInaccessible } from './helpers/accessiblity';\n\nexport type {\n RenderOptions,\n RenderResult,\n RenderResult as RenderAPI,\n} from './render';\nexport type { RenderHookOptions, RenderHookResult } from './renderHook';\n\nexport { act };\nexport { cleanup };\nexport { fireEvent };\nexport { render };\nexport { waitFor };\nexport { waitForElementToBeRemoved };\nexport { within, getQueriesForElement };\nexport { getDefaultNormalizer };\nexport { renderHook };\nexport { screen };\nexport { isInaccessible };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pure.js","names":[],"sources":["../src/pure.ts"],"sourcesContent":["import act from './act';\nimport cleanup from './cleanup';\nimport fireEvent from './fireEvent';\nimport render from './render';\nimport waitFor from './waitFor';\nimport waitForElementToBeRemoved from './waitForElementToBeRemoved';\nimport { within, getQueriesForElement } from './within';\nimport { getDefaultNormalizer } from './matches';\nimport { renderHook } from './renderHook';\nimport { screen } from './screen';\nimport { isInaccessible } from './helpers/accessiblity';\n\nexport type {\n RenderOptions,\n RenderResult,\n RenderResult as RenderAPI,\n} from './render';\nexport type { RenderHookOptions, RenderHookResult } from './renderHook';\nexport type { Config } from './config';\n\nexport { act };\nexport { cleanup };\nexport { configure, resetToDefaults } from './config';\nexport { fireEvent };\nexport { render };\nexport { waitFor };\nexport { waitForElementToBeRemoved };\nexport { within, getQueriesForElement };\nexport { getDefaultNormalizer };\nexport { renderHook };\nexport { screen };\nexport { isInaccessible };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAYA;AAAsD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactTestInstance } from 'react-test-renderer';
|
|
2
|
-
import { AccessibilityState } from 'react-native';
|
|
2
|
+
import type { AccessibilityState } from 'react-native';
|
|
3
3
|
import type { FindAllByQuery, FindByQuery, GetAllByQuery, GetByQuery, QueryAllByQuery, QueryByQuery } from './makeQueries';
|
|
4
4
|
export declare type ByA11yStateQueries = {
|
|
5
5
|
getByA11yState: GetByQuery<AccessibilityState>;
|
|
@@ -4,19 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.bindByA11yStateQueries = void 0;
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
7
|
+
var _accessiblity = require("../helpers/accessiblity");
|
|
8
|
+
var _accessibilityState = require("../helpers/matchers/accessibilityState");
|
|
10
9
|
var _makeQueries = require("./makeQueries");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return instance.findAll(node => typeof node.type === 'string' && (0, _matchObjectProp.matchObjectProp)(node.props.accessibilityState, state));
|
|
10
|
+
const queryAllByA11yState = instance => function queryAllByA11yStateFn(matcher) {
|
|
11
|
+
return instance.findAll(node => typeof node.type === 'string' && (0, _accessibilityState.matchAccessibilityState)(node, matcher));
|
|
14
12
|
};
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
const buildErrorMessage = (state = {}) => {
|
|
14
|
+
const errors = [];
|
|
15
|
+
_accessiblity.accessibilityStateKeys.forEach(stateKey => {
|
|
16
|
+
if (state[stateKey] !== undefined) {
|
|
17
|
+
errors.push(`${stateKey} state: ${state[stateKey]}`);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
return errors.join(', ');
|
|
21
|
+
};
|
|
22
|
+
const getMultipleError = state => `Found multiple elements with ${buildErrorMessage(state)}`;
|
|
23
|
+
const getMissingError = state => `Unable to find an element with ${buildErrorMessage(state)}`;
|
|
20
24
|
const {
|
|
21
25
|
getBy,
|
|
22
26
|
getAllBy,
|
|
@@ -25,7 +29,6 @@ const {
|
|
|
25
29
|
findBy,
|
|
26
30
|
findAllBy
|
|
27
31
|
} = (0, _makeQueries.makeQueries)(queryAllByA11yState, getMissingError, getMultipleError);
|
|
28
|
-
|
|
29
32
|
const bindByA11yStateQueries = instance => {
|
|
30
33
|
const getByA11yState = getBy(instance);
|
|
31
34
|
const getAllByA11yState = getAllBy(instance);
|
|
@@ -48,6 +51,5 @@ const bindByA11yStateQueries = instance => {
|
|
|
48
51
|
findAllByAccessibilityState: findAllByA11yState
|
|
49
52
|
};
|
|
50
53
|
};
|
|
51
|
-
|
|
52
54
|
exports.bindByA11yStateQueries = bindByA11yStateQueries;
|
|
53
55
|
//# sourceMappingURL=a11yState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11yState.js","names":["queryAllByA11yState","instance","queryAllByA11yStateFn","
|
|
1
|
+
{"version":3,"file":"a11yState.js","names":["queryAllByA11yState","instance","queryAllByA11yStateFn","matcher","findAll","node","type","matchAccessibilityState","buildErrorMessage","state","errors","accessibilityStateKeys","forEach","stateKey","undefined","push","join","getMultipleError","getMissingError","getBy","getAllBy","queryBy","queryAllBy","findBy","findAllBy","makeQueries","bindByA11yStateQueries","getByA11yState","getAllByA11yState","queryByA11yState","findByA11yState","findAllByA11yState","getByAccessibilityState","getAllByAccessibilityState","queryByAccessibilityState","queryAllByAccessibilityState","findByAccessibilityState","findAllByAccessibilityState"],"sources":["../../src/queries/a11yState.ts"],"sourcesContent":["import type { ReactTestInstance } from 'react-test-renderer';\nimport type { AccessibilityState } from 'react-native';\nimport { accessibilityStateKeys } from '../helpers/accessiblity';\nimport { matchAccessibilityState } from '../helpers/matchers/accessibilityState';\nimport { makeQueries } from './makeQueries';\nimport type {\n FindAllByQuery,\n FindByQuery,\n GetAllByQuery,\n GetByQuery,\n QueryAllByQuery,\n QueryByQuery,\n} from './makeQueries';\n\nconst queryAllByA11yState = (\n instance: ReactTestInstance\n): ((matcher: AccessibilityState) => Array<ReactTestInstance>) =>\n function queryAllByA11yStateFn(matcher) {\n return instance.findAll(\n (node) =>\n typeof node.type === 'string' && matchAccessibilityState(node, matcher)\n );\n };\n\nconst buildErrorMessage = (state: AccessibilityState = {}) => {\n const errors: string[] = [];\n\n accessibilityStateKeys.forEach((stateKey) => {\n if (state[stateKey] !== undefined) {\n errors.push(`${stateKey} state: ${state[stateKey]}`);\n }\n });\n\n return errors.join(', ');\n};\n\nconst getMultipleError = (state: AccessibilityState) =>\n `Found multiple elements with ${buildErrorMessage(state)}`;\n\nconst getMissingError = (state: AccessibilityState) =>\n `Unable to find an element with ${buildErrorMessage(state)}`;\n\nconst { getBy, getAllBy, queryBy, queryAllBy, findBy, findAllBy } = makeQueries(\n queryAllByA11yState,\n getMissingError,\n getMultipleError\n);\n\nexport type ByA11yStateQueries = {\n getByA11yState: GetByQuery<AccessibilityState>;\n getAllByA11yState: GetAllByQuery<AccessibilityState>;\n queryByA11yState: QueryByQuery<AccessibilityState>;\n queryAllByA11yState: QueryAllByQuery<AccessibilityState>;\n findByA11yState: FindByQuery<AccessibilityState>;\n findAllByA11yState: FindAllByQuery<AccessibilityState>;\n\n getByAccessibilityState: GetByQuery<AccessibilityState>;\n getAllByAccessibilityState: GetAllByQuery<AccessibilityState>;\n queryByAccessibilityState: QueryByQuery<AccessibilityState>;\n queryAllByAccessibilityState: QueryAllByQuery<AccessibilityState>;\n findByAccessibilityState: FindByQuery<AccessibilityState>;\n findAllByAccessibilityState: FindAllByQuery<AccessibilityState>;\n};\n\nexport const bindByA11yStateQueries = (\n instance: ReactTestInstance\n): ByA11yStateQueries => {\n const getByA11yState = getBy(instance);\n const getAllByA11yState = getAllBy(instance);\n const queryByA11yState = queryBy(instance);\n const queryAllByA11yState = queryAllBy(instance);\n const findByA11yState = findBy(instance);\n const findAllByA11yState = findAllBy(instance);\n\n return {\n getByA11yState,\n getAllByA11yState,\n queryByA11yState,\n queryAllByA11yState,\n findByA11yState,\n findAllByA11yState,\n\n getByAccessibilityState: getByA11yState,\n getAllByAccessibilityState: getAllByA11yState,\n queryByAccessibilityState: queryByA11yState,\n queryAllByAccessibilityState: queryAllByA11yState,\n findByAccessibilityState: findByA11yState,\n findAllByAccessibilityState: findAllByA11yState,\n };\n};\n"],"mappings":";;;;;;AAEA;AACA;AACA;AAUA,MAAMA,mBAAmB,GACvBC,QAA2B,IAE3B,SAASC,qBAAqB,CAACC,OAAO,EAAE;EACtC,OAAOF,QAAQ,CAACG,OAAO,CACpBC,IAAI,IACH,OAAOA,IAAI,CAACC,IAAI,KAAK,QAAQ,IAAI,IAAAC,2CAAuB,EAACF,IAAI,EAAEF,OAAO,CAAC,CAC1E;AACH,CAAC;AAEH,MAAMK,iBAAiB,GAAG,CAACC,KAAyB,GAAG,CAAC,CAAC,KAAK;EAC5D,MAAMC,MAAgB,GAAG,EAAE;EAE3BC,oCAAsB,CAACC,OAAO,CAAEC,QAAQ,IAAK;IAC3C,IAAIJ,KAAK,CAACI,QAAQ,CAAC,KAAKC,SAAS,EAAE;MACjCJ,MAAM,CAACK,IAAI,CAAE,GAAEF,QAAS,WAAUJ,KAAK,CAACI,QAAQ,CAAE,EAAC,CAAC;IACtD;EACF,CAAC,CAAC;EAEF,OAAOH,MAAM,CAACM,IAAI,CAAC,IAAI,CAAC;AAC1B,CAAC;AAED,MAAMC,gBAAgB,GAAIR,KAAyB,IAChD,gCAA+BD,iBAAiB,CAACC,KAAK,CAAE,EAAC;AAE5D,MAAMS,eAAe,GAAIT,KAAyB,IAC/C,kCAAiCD,iBAAiB,CAACC,KAAK,CAAE,EAAC;AAE9D,MAAM;EAAEU,KAAK;EAAEC,QAAQ;EAAEC,OAAO;EAAEC,UAAU;EAAEC,MAAM;EAAEC;AAAU,CAAC,GAAG,IAAAC,wBAAW,EAC7EzB,mBAAmB,EACnBkB,eAAe,EACfD,gBAAgB,CACjB;AAkBM,MAAMS,sBAAsB,GACjCzB,QAA2B,IACJ;EACvB,MAAM0B,cAAc,GAAGR,KAAK,CAAClB,QAAQ,CAAC;EACtC,MAAM2B,iBAAiB,GAAGR,QAAQ,CAACnB,QAAQ,CAAC;EAC5C,MAAM4B,gBAAgB,GAAGR,OAAO,CAACpB,QAAQ,CAAC;EAC1C,MAAMD,mBAAmB,GAAGsB,UAAU,CAACrB,QAAQ,CAAC;EAChD,MAAM6B,eAAe,GAAGP,MAAM,CAACtB,QAAQ,CAAC;EACxC,MAAM8B,kBAAkB,GAAGP,SAAS,CAACvB,QAAQ,CAAC;EAE9C,OAAO;IACL0B,cAAc;IACdC,iBAAiB;IACjBC,gBAAgB;IAChB7B,mBAAmB;IACnB8B,eAAe;IACfC,kBAAkB;IAElBC,uBAAuB,EAAEL,cAAc;IACvCM,0BAA0B,EAAEL,iBAAiB;IAC7CM,yBAAyB,EAAEL,gBAAgB;IAC3CM,4BAA4B,EAAEnC,mBAAmB;IACjDoC,wBAAwB,EAAEN,eAAe;IACzCO,2BAA2B,EAAEN;EAC/B,CAAC;AACH,CAAC;AAAC"}
|
|
@@ -4,19 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.bindByA11yValueQueries = void 0;
|
|
7
|
-
|
|
8
7
|
var _matchObjectProp = require("../helpers/matchers/matchObjectProp");
|
|
9
|
-
|
|
10
8
|
var _makeQueries = require("./makeQueries");
|
|
11
|
-
|
|
12
9
|
const queryAllByA11yValue = instance => function queryAllByA11yValueFn(value) {
|
|
13
10
|
return instance.findAll(node => typeof node.type === 'string' && (0, _matchObjectProp.matchObjectProp)(node.props.accessibilityValue, value));
|
|
14
11
|
};
|
|
15
|
-
|
|
16
12
|
const getMultipleError = value => `Found multiple elements with accessibilityValue: ${JSON.stringify(value)} `;
|
|
17
|
-
|
|
18
13
|
const getMissingError = value => `Unable to find an element with accessibilityValue: ${JSON.stringify(value)}`;
|
|
19
|
-
|
|
20
14
|
const {
|
|
21
15
|
getBy,
|
|
22
16
|
getAllBy,
|
|
@@ -25,7 +19,6 @@ const {
|
|
|
25
19
|
findBy,
|
|
26
20
|
findAllBy
|
|
27
21
|
} = (0, _makeQueries.makeQueries)(queryAllByA11yValue, getMissingError, getMultipleError);
|
|
28
|
-
|
|
29
22
|
const bindByA11yValueQueries = instance => {
|
|
30
23
|
const getByA11yValue = getBy(instance);
|
|
31
24
|
const getAllByA11yValue = getAllBy(instance);
|
|
@@ -48,6 +41,5 @@ const bindByA11yValueQueries = instance => {
|
|
|
48
41
|
findAllByAccessibilityValue: findAllByA11yValue
|
|
49
42
|
};
|
|
50
43
|
};
|
|
51
|
-
|
|
52
44
|
exports.bindByA11yValueQueries = bindByA11yValueQueries;
|
|
53
45
|
//# sourceMappingURL=a11yValue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11yValue.js","names":["queryAllByA11yValue","instance","queryAllByA11yValueFn","value","findAll","node","type","matchObjectProp","props","accessibilityValue","getMultipleError","JSON","stringify","getMissingError","getBy","getAllBy","queryBy","queryAllBy","findBy","findAllBy","makeQueries","bindByA11yValueQueries","getByA11yValue","getAllByA11yValue","queryByA11yValue","findByA11yValue","findAllByA11yValue","getByAccessibilityValue","getAllByAccessibilityValue","queryByAccessibilityValue","queryAllByAccessibilityValue","findByAccessibilityValue","findAllByAccessibilityValue"],"sources":["../../src/queries/a11yValue.ts"],"sourcesContent":["import type { ReactTestInstance } from 'react-test-renderer';\nimport { matchObjectProp } from '../helpers/matchers/matchObjectProp';\nimport { makeQueries } from './makeQueries';\nimport type {\n FindAllByQuery,\n FindByQuery,\n GetAllByQuery,\n GetByQuery,\n QueryAllByQuery,\n QueryByQuery,\n} from './makeQueries';\n\ntype A11yValue = {\n min?: number;\n max?: number;\n now?: number;\n text?: string;\n};\n\nconst queryAllByA11yValue = (\n instance: ReactTestInstance\n): ((value: A11yValue) => Array<ReactTestInstance>) =>\n function queryAllByA11yValueFn(value) {\n return instance.findAll(\n (node) =>\n typeof node.type === 'string' &&\n matchObjectProp(node.props.accessibilityValue, value)\n );\n };\n\nconst getMultipleError = (value: A11yValue) =>\n `Found multiple elements with accessibilityValue: ${JSON.stringify(value)} `;\nconst getMissingError = (value: A11yValue) =>\n `Unable to find an element with accessibilityValue: ${JSON.stringify(value)}`;\n\nconst { getBy, getAllBy, queryBy, queryAllBy, findBy, findAllBy } = makeQueries(\n queryAllByA11yValue,\n getMissingError,\n getMultipleError\n);\n\nexport type ByA11yValueQueries = {\n getByA11yValue: GetByQuery<A11yValue>;\n getAllByA11yValue: GetAllByQuery<A11yValue>;\n queryByA11yValue: QueryByQuery<A11yValue>;\n queryAllByA11yValue: QueryAllByQuery<A11yValue>;\n findByA11yValue: FindByQuery<A11yValue>;\n findAllByA11yValue: FindAllByQuery<A11yValue>;\n\n getByAccessibilityValue: GetByQuery<A11yValue>;\n getAllByAccessibilityValue: GetAllByQuery<A11yValue>;\n queryByAccessibilityValue: QueryByQuery<A11yValue>;\n queryAllByAccessibilityValue: QueryAllByQuery<A11yValue>;\n findByAccessibilityValue: FindByQuery<A11yValue>;\n findAllByAccessibilityValue: FindAllByQuery<A11yValue>;\n};\n\nexport const bindByA11yValueQueries = (\n instance: ReactTestInstance\n): ByA11yValueQueries => {\n const getByA11yValue = getBy(instance);\n const getAllByA11yValue = getAllBy(instance);\n const queryByA11yValue = queryBy(instance);\n const queryAllByA11yValue = queryAllBy(instance);\n const findByA11yValue = findBy(instance);\n const findAllByA11yValue = findAllBy(instance);\n\n return {\n getByA11yValue,\n getAllByA11yValue,\n queryByA11yValue,\n queryAllByA11yValue,\n findByA11yValue,\n findAllByA11yValue,\n\n getByAccessibilityValue: getByA11yValue,\n getAllByAccessibilityValue: getAllByA11yValue,\n queryByAccessibilityValue: queryByA11yValue,\n queryAllByAccessibilityValue: queryAllByA11yValue,\n findByAccessibilityValue: findByA11yValue,\n findAllByAccessibilityValue: findAllByA11yValue,\n };\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"a11yValue.js","names":["queryAllByA11yValue","instance","queryAllByA11yValueFn","value","findAll","node","type","matchObjectProp","props","accessibilityValue","getMultipleError","JSON","stringify","getMissingError","getBy","getAllBy","queryBy","queryAllBy","findBy","findAllBy","makeQueries","bindByA11yValueQueries","getByA11yValue","getAllByA11yValue","queryByA11yValue","findByA11yValue","findAllByA11yValue","getByAccessibilityValue","getAllByAccessibilityValue","queryByAccessibilityValue","queryAllByAccessibilityValue","findByAccessibilityValue","findAllByAccessibilityValue"],"sources":["../../src/queries/a11yValue.ts"],"sourcesContent":["import type { ReactTestInstance } from 'react-test-renderer';\nimport { matchObjectProp } from '../helpers/matchers/matchObjectProp';\nimport { makeQueries } from './makeQueries';\nimport type {\n FindAllByQuery,\n FindByQuery,\n GetAllByQuery,\n GetByQuery,\n QueryAllByQuery,\n QueryByQuery,\n} from './makeQueries';\n\ntype A11yValue = {\n min?: number;\n max?: number;\n now?: number;\n text?: string;\n};\n\nconst queryAllByA11yValue = (\n instance: ReactTestInstance\n): ((value: A11yValue) => Array<ReactTestInstance>) =>\n function queryAllByA11yValueFn(value) {\n return instance.findAll(\n (node) =>\n typeof node.type === 'string' &&\n matchObjectProp(node.props.accessibilityValue, value)\n );\n };\n\nconst getMultipleError = (value: A11yValue) =>\n `Found multiple elements with accessibilityValue: ${JSON.stringify(value)} `;\nconst getMissingError = (value: A11yValue) =>\n `Unable to find an element with accessibilityValue: ${JSON.stringify(value)}`;\n\nconst { getBy, getAllBy, queryBy, queryAllBy, findBy, findAllBy } = makeQueries(\n queryAllByA11yValue,\n getMissingError,\n getMultipleError\n);\n\nexport type ByA11yValueQueries = {\n getByA11yValue: GetByQuery<A11yValue>;\n getAllByA11yValue: GetAllByQuery<A11yValue>;\n queryByA11yValue: QueryByQuery<A11yValue>;\n queryAllByA11yValue: QueryAllByQuery<A11yValue>;\n findByA11yValue: FindByQuery<A11yValue>;\n findAllByA11yValue: FindAllByQuery<A11yValue>;\n\n getByAccessibilityValue: GetByQuery<A11yValue>;\n getAllByAccessibilityValue: GetAllByQuery<A11yValue>;\n queryByAccessibilityValue: QueryByQuery<A11yValue>;\n queryAllByAccessibilityValue: QueryAllByQuery<A11yValue>;\n findByAccessibilityValue: FindByQuery<A11yValue>;\n findAllByAccessibilityValue: FindAllByQuery<A11yValue>;\n};\n\nexport const bindByA11yValueQueries = (\n instance: ReactTestInstance\n): ByA11yValueQueries => {\n const getByA11yValue = getBy(instance);\n const getAllByA11yValue = getAllBy(instance);\n const queryByA11yValue = queryBy(instance);\n const queryAllByA11yValue = queryAllBy(instance);\n const findByA11yValue = findBy(instance);\n const findAllByA11yValue = findAllBy(instance);\n\n return {\n getByA11yValue,\n getAllByA11yValue,\n queryByA11yValue,\n queryAllByA11yValue,\n findByA11yValue,\n findAllByA11yValue,\n\n getByAccessibilityValue: getByA11yValue,\n getAllByAccessibilityValue: getAllByA11yValue,\n queryByAccessibilityValue: queryByA11yValue,\n queryAllByAccessibilityValue: queryAllByA11yValue,\n findByAccessibilityValue: findByA11yValue,\n findAllByAccessibilityValue: findAllByA11yValue,\n };\n};\n"],"mappings":";;;;;;AACA;AACA;AAiBA,MAAMA,mBAAmB,GACvBC,QAA2B,IAE3B,SAASC,qBAAqB,CAACC,KAAK,EAAE;EACpC,OAAOF,QAAQ,CAACG,OAAO,CACpBC,IAAI,IACH,OAAOA,IAAI,CAACC,IAAI,KAAK,QAAQ,IAC7B,IAAAC,gCAAe,EAACF,IAAI,CAACG,KAAK,CAACC,kBAAkB,EAAEN,KAAK,CAAC,CACxD;AACH,CAAC;AAEH,MAAMO,gBAAgB,GAAIP,KAAgB,IACvC,oDAAmDQ,IAAI,CAACC,SAAS,CAACT,KAAK,CAAE,GAAE;AAC9E,MAAMU,eAAe,GAAIV,KAAgB,IACtC,sDAAqDQ,IAAI,CAACC,SAAS,CAACT,KAAK,CAAE,EAAC;AAE/E,MAAM;EAAEW,KAAK;EAAEC,QAAQ;EAAEC,OAAO;EAAEC,UAAU;EAAEC,MAAM;EAAEC;AAAU,CAAC,GAAG,IAAAC,wBAAW,EAC7EpB,mBAAmB,EACnBa,eAAe,EACfH,gBAAgB,CACjB;AAkBM,MAAMW,sBAAsB,GACjCpB,QAA2B,IACJ;EACvB,MAAMqB,cAAc,GAAGR,KAAK,CAACb,QAAQ,CAAC;EACtC,MAAMsB,iBAAiB,GAAGR,QAAQ,CAACd,QAAQ,CAAC;EAC5C,MAAMuB,gBAAgB,GAAGR,OAAO,CAACf,QAAQ,CAAC;EAC1C,MAAMD,mBAAmB,GAAGiB,UAAU,CAAChB,QAAQ,CAAC;EAChD,MAAMwB,eAAe,GAAGP,MAAM,CAACjB,QAAQ,CAAC;EACxC,MAAMyB,kBAAkB,GAAGP,SAAS,CAAClB,QAAQ,CAAC;EAE9C,OAAO;IACLqB,cAAc;IACdC,iBAAiB;IACjBC,gBAAgB;IAChBxB,mBAAmB;IACnByB,eAAe;IACfC,kBAAkB;IAElBC,uBAAuB,EAAEL,cAAc;IACvCM,0BAA0B,EAAEL,iBAAiB;IAC7CM,yBAAyB,EAAEL,gBAAgB;IAC3CM,4BAA4B,EAAE9B,mBAAmB;IACjD+B,wBAAwB,EAAEN,eAAe;IACzCO,2BAA2B,EAAEN;EAC/B,CAAC;AACH,CAAC;AAAC"}
|