@multiplatform.one/test-utils 7.83.1 → 7.84.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.
@@ -0,0 +1,560 @@
1
+ import "@testing-library/jest-dom";
2
+ import "matchmedia-polyfill";
3
+ import { config } from "@tamagui/config";
4
+ import { cleanup } from "@testing-library/react";
5
+ import { createTamagui } from "tamagui";
6
+ import { afterAll, afterEach, beforeAll, beforeEach, vi } from "vitest";
7
+ import { createAnimationFrames } from "./frames.mjs";
8
+ const _noopStorage = {
9
+ getItem: () => null,
10
+ setItem: () => {},
11
+ removeItem: () => {},
12
+ clear: () => {},
13
+ get length() {
14
+ return 0;
15
+ },
16
+ key: () => null
17
+ };
18
+ if (typeof globalThis !== "undefined" && typeof globalThis.localStorage === "undefined") {
19
+ Object.defineProperty(globalThis, "localStorage", {
20
+ value: _noopStorage,
21
+ writable: true
22
+ });
23
+ }
24
+ if (typeof global !== "undefined" && !("localStorage" in global)) {
25
+ Object.defineProperty(global, "localStorage", {
26
+ value: _noopStorage,
27
+ writable: true
28
+ });
29
+ }
30
+ if (typeof window !== "undefined" && typeof document !== "undefined") {
31
+ if (typeof CSSStyleDeclaration !== "undefined" && CSSStyleDeclaration.prototype) {
32
+ for (let i = 0; i <= 64; i++) {
33
+ const key = String(i);
34
+ const desc = Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype, key);
35
+ if (!desc || desc.set == null) {
36
+ Object.defineProperty(CSSStyleDeclaration.prototype, key, {
37
+ configurable: true,
38
+ enumerable: false,
39
+ get() {
40
+ return "";
41
+ },
42
+ set() {}
43
+ });
44
+ }
45
+ }
46
+ }
47
+ if (typeof NodeList !== "undefined" && NodeList.prototype) {
48
+ if (!NodeList.prototype.forEach) {
49
+ NodeList.prototype.forEach = Array.prototype.forEach;
50
+ }
51
+ }
52
+ if (typeof HTMLCollection !== "undefined" && HTMLCollection.prototype) {
53
+ if (!HTMLCollection.prototype.forEach) {
54
+ HTMLCollection.prototype.forEach = Array.prototype.forEach;
55
+ }
56
+ }
57
+ const matchesImpl = function (selector) {
58
+ if (!this || typeof this !== "object") return false;
59
+ if (this.nodeType === 1) {
60
+ if (this.webkitMatchesSelector) return this.webkitMatchesSelector(selector);
61
+ if (this.mozMatchesSelector) return this.mozMatchesSelector(selector);
62
+ if (this.msMatchesSelector) return this.msMatchesSelector(selector);
63
+ const matches = (this.ownerDocument || document).querySelectorAll(selector);
64
+ let i = matches.length;
65
+ while (--i >= 0 && matches[i] !== this) {}
66
+ return i > -1;
67
+ }
68
+ return false;
69
+ };
70
+ if (Element.prototype && !Element.prototype.matches) {
71
+ Object.defineProperty(Element.prototype, "matches", {
72
+ value: matchesImpl,
73
+ writable: true,
74
+ configurable: true,
75
+ enumerable: false
76
+ });
77
+ }
78
+ if (typeof HTMLElement !== "undefined" && HTMLElement.prototype && !HTMLElement.prototype.matches) {
79
+ Object.defineProperty(HTMLElement.prototype, "matches", {
80
+ value: matchesImpl,
81
+ writable: true,
82
+ configurable: true,
83
+ enumerable: false
84
+ });
85
+ }
86
+ const hasAttributeImpl = function (name) {
87
+ if (!this || this.nodeType !== 1) return false;
88
+ if (Element.prototype.hasAttribute && this instanceof Element) {
89
+ return Element.prototype.hasAttribute.call(this, name);
90
+ }
91
+ if (this.attributes) {
92
+ for (let i = 0; i < this.attributes.length; i++) {
93
+ if (this.attributes[i].name === name) return true;
94
+ }
95
+ }
96
+ return false;
97
+ };
98
+ const getAttributeImpl = function (name) {
99
+ if (!this || this.nodeType !== 1) return null;
100
+ if (Element.prototype.getAttribute && this instanceof Element) {
101
+ return Element.prototype.getAttribute.call(this, name);
102
+ }
103
+ if (this.attributes) {
104
+ for (let i = 0; i < this.attributes.length; i++) {
105
+ if (this.attributes[i].name === name) return this.attributes[i].value;
106
+ }
107
+ }
108
+ return null;
109
+ };
110
+ const nodeTypes = [typeof Node !== "undefined" && Node, typeof Element !== "undefined" && Element, typeof HTMLElement !== "undefined" && HTMLElement, typeof HTMLDivElement !== "undefined" && HTMLDivElement, typeof HTMLSpanElement !== "undefined" && HTMLSpanElement, typeof HTMLInputElement !== "undefined" && HTMLInputElement, typeof HTMLButtonElement !== "undefined" && HTMLButtonElement, typeof HTMLFormElement !== "undefined" && HTMLFormElement, typeof HTMLLabelElement !== "undefined" && HTMLLabelElement, typeof Text !== "undefined" && Text, typeof Comment !== "undefined" && Comment, typeof Document !== "undefined" && Document, typeof DocumentFragment !== "undefined" && DocumentFragment].filter(Boolean);
111
+ for (const NodeType of nodeTypes) {
112
+ if (NodeType?.prototype) {
113
+ if (!NodeType.prototype.hasAttribute) {
114
+ Object.defineProperty(NodeType.prototype, "hasAttribute", {
115
+ value: hasAttributeImpl,
116
+ writable: true,
117
+ configurable: true,
118
+ enumerable: false
119
+ });
120
+ }
121
+ if (!NodeType.prototype.getAttribute) {
122
+ Object.defineProperty(NodeType.prototype, "getAttribute", {
123
+ value: getAttributeImpl,
124
+ writable: true,
125
+ configurable: true,
126
+ enumerable: false
127
+ });
128
+ }
129
+ if (!NodeType.prototype.setAttribute) {
130
+ Object.defineProperty(NodeType.prototype, "setAttribute", {
131
+ value: function (name, value) {
132
+ if (this.nodeType === 1 && Element.prototype.setAttribute) {
133
+ Element.prototype.setAttribute.call(this, name, value);
134
+ }
135
+ },
136
+ writable: true,
137
+ configurable: true,
138
+ enumerable: false
139
+ });
140
+ }
141
+ }
142
+ }
143
+ if (typeof HTMLFormElement !== "undefined") {
144
+ Object.defineProperty(HTMLFormElement.prototype, "requestSubmit", {
145
+ value: function (submitter) {
146
+ if (submitter) {
147
+ if (submitter.type !== "submit") {
148
+ throw new TypeError("The specified element is not a submit button");
149
+ }
150
+ if (submitter.form !== this) {
151
+ throw new DOMException("The specified element is not owned by this form element", "NotFoundError");
152
+ }
153
+ }
154
+ const submitEvent = new Event("submit", {
155
+ bubbles: true,
156
+ cancelable: true
157
+ });
158
+ this.dispatchEvent(submitEvent);
159
+ },
160
+ writable: true,
161
+ configurable: true,
162
+ enumerable: false
163
+ });
164
+ }
165
+ }
166
+ const floatingUiPatched = import("@floating-ui/react/utils").then(floatingUiUtils => {
167
+ if (floatingUiUtils?.enableFocusInside) {
168
+ const originalEnableFocusInside = floatingUiUtils.enableFocusInside;
169
+ floatingUiUtils.enableFocusInside = container => {
170
+ if (!container || !container.querySelectorAll) return;
171
+ const elements = container.querySelectorAll("[data-tabindex]");
172
+ if (!elements.forEach) {
173
+ elements.forEach = Array.prototype.forEach;
174
+ }
175
+ return originalEnableFocusInside(container);
176
+ };
177
+ }
178
+ }).catch(() => {});
179
+ beforeAll(() => floatingUiPatched);
180
+ createTamagui(config);
181
+ const noopStorage = {
182
+ getItem: () => null,
183
+ setItem: () => {},
184
+ removeItem: () => {},
185
+ clear: () => {},
186
+ get length() {
187
+ return 0;
188
+ },
189
+ key: () => null
190
+ };
191
+ vi.stubGlobal("localStorage", noopStorage);
192
+ Object.defineProperty(globalThis, "localStorage", {
193
+ value: noopStorage,
194
+ writable: true
195
+ });
196
+ if (typeof global !== "undefined") {
197
+ Object.defineProperty(global, "localStorage", {
198
+ value: noopStorage,
199
+ writable: true
200
+ });
201
+ }
202
+ if (typeof globalThis !== "undefined" && typeof globalThis.BroadcastChannel === "undefined") {
203
+ globalThis.BroadcastChannel = class BroadcastChannelMock {
204
+ name;
205
+ onmessage = null;
206
+ constructor(name) {
207
+ this.name = name;
208
+ }
209
+ postMessage(_message) {}
210
+ close() {}
211
+ };
212
+ }
213
+ if (typeof window !== "undefined" && !window.indexedDB) {
214
+ Object.defineProperty(window, "indexedDB", {
215
+ value: {
216
+ open: () => ({
217
+ onsuccess: null,
218
+ onerror: null,
219
+ onupgradeneeded: null,
220
+ result: null
221
+ }),
222
+ deleteDatabase: () => ({
223
+ onsuccess: null,
224
+ onerror: null
225
+ })
226
+ },
227
+ writable: true
228
+ });
229
+ }
230
+ vi.stubGlobal("fetch", vi.fn(() => Promise.resolve(new Response(JSON.stringify({
231
+ data: []
232
+ }), {
233
+ status: 200,
234
+ headers: {
235
+ "Content-Type": "application/json"
236
+ }
237
+ }))));
238
+ window.matchMedia = window.matchMedia || (() => ({
239
+ matches: false,
240
+ addListener: () => {},
241
+ removeListener: () => {}
242
+ }));
243
+ const animationFrames = createAnimationFrames();
244
+ global.requestAnimationFrame = animationFrames.request;
245
+ global.cancelAnimationFrame = animationFrames.cancel;
246
+ afterAll(animationFrames.close);
247
+ class MockResizeObserver {
248
+ observe() {}
249
+ unobserve() {}
250
+ disconnect() {}
251
+ }
252
+ window.ResizeObserver = MockResizeObserver;
253
+ class MockIntersectionObserver {
254
+ root = null;
255
+ rootMargin = "0px";
256
+ // TS7's dom lib added scrollMargin to the interface.
257
+ scrollMargin = "0px";
258
+ thresholds = [0];
259
+ observe() {}
260
+ unobserve() {}
261
+ disconnect() {}
262
+ takeRecords() {
263
+ return [];
264
+ }
265
+ }
266
+ if (typeof window !== "undefined") {
267
+ Object.defineProperty(window, "IntersectionObserver", {
268
+ value: MockIntersectionObserver,
269
+ writable: true,
270
+ configurable: true
271
+ });
272
+ }
273
+ Object.defineProperty(globalThis, "IntersectionObserver", {
274
+ value: MockIntersectionObserver,
275
+ writable: true,
276
+ configurable: true
277
+ });
278
+ if (typeof global !== "undefined") {
279
+ Object.defineProperty(global, "IntersectionObserver", {
280
+ value: MockIntersectionObserver,
281
+ writable: true,
282
+ configurable: true
283
+ });
284
+ }
285
+ if (typeof self !== "undefined") {
286
+ Object.defineProperty(self, "IntersectionObserver", {
287
+ value: MockIntersectionObserver,
288
+ writable: true,
289
+ configurable: true
290
+ });
291
+ }
292
+ if (typeof DataTransfer === "undefined") {
293
+ global.DataTransfer = class DataTransfer {
294
+ data;
295
+ constructor() {
296
+ this.data = /* @__PURE__ */new Map();
297
+ }
298
+ getData(format) {
299
+ return this.data.get(format) || "";
300
+ }
301
+ setData(format, data) {
302
+ this.data.set(format, data);
303
+ }
304
+ clearData(format) {
305
+ if (format) {
306
+ this.data.delete(format);
307
+ } else {
308
+ this.data.clear();
309
+ }
310
+ }
311
+ };
312
+ }
313
+ if (typeof ClipboardEvent === "undefined") {
314
+ global.ClipboardEvent = class ClipboardEvent extends Event {
315
+ clipboardData;
316
+ constructor(type, options) {
317
+ super(type, options);
318
+ this.clipboardData = options?.clipboardData || {
319
+ getData: () => "",
320
+ setData: () => {}
321
+ };
322
+ }
323
+ };
324
+ }
325
+ class ESBuildAndJSDOMCompatibleTextEncoder extends TextEncoder {
326
+ encode(input) {
327
+ if (typeof input !== "string") throw new TypeError("`input` must be a string");
328
+ const decodedURI = decodeURIComponent(encodeURIComponent(input));
329
+ const arr = new Uint8Array(decodedURI.length);
330
+ const chars = decodedURI.split("");
331
+ for (let i = 0; i < chars.length; i++) {
332
+ arr[i] = (decodedURI[i] || "").charCodeAt(0);
333
+ }
334
+ return arr;
335
+ }
336
+ }
337
+ Object.defineProperty(global, "TextEncoder", {
338
+ value: ESBuildAndJSDOMCompatibleTextEncoder,
339
+ writable: true
340
+ });
341
+ vi.mock("@multiplatform.one/theme", async importOriginal => {
342
+ const actual = await importOriginal();
343
+ const getSizeClass = actual.getLayoutSizeClass;
344
+ const getPaneBudget = actual.defaultMaxPanes;
345
+ const fallbackWidth = actual.layoutBreakpoints.medium;
346
+ const viewportWidth = () => typeof window === "undefined" ? fallbackWidth : window.innerWidth;
347
+ return {
348
+ ...actual,
349
+ // Real useLayoutSizeClass subscribes via matchMedia().addEventListener,
350
+ // which test matchMedia polyfills / per-spec vi.fn mocks routinely lack;
351
+ // resolve from window.innerWidth at render (the same value the real hook
352
+ // computes at mount) through the real getLayoutSizeClass.
353
+ useLayoutSizeClass: () => getSizeClass(viewportWidth()),
354
+ // Rides useLayoutSizeClass (same matchMedia dependency); derive the pane
355
+ // budget through the real defaultMaxPanes.
356
+ useMultiPane: maxPanes => {
357
+ const budget = getPaneBudget(getSizeClass(viewportWidth()));
358
+ return (maxPanes ?? budget) >= 2 && budget >= 2;
359
+ },
360
+ // Real tracker installs document-level capture listeners backed by module
361
+ // state, leaking "last input was keyboard" across tests in a file; noop.
362
+ ensureKeyboardModalityTracking: () => {},
363
+ // Pin pointer modality so manual focus-ring painting is deterministic.
364
+ wasKeyboardFocus: () => false
365
+ };
366
+ });
367
+ vi.mock("one", () => ({
368
+ default: {},
369
+ SafeAreaView: ({
370
+ children
371
+ }) => children,
372
+ Head: ({
373
+ children
374
+ }) => children,
375
+ useRouter: () => ({
376
+ push: vi.fn(),
377
+ replace: vi.fn(),
378
+ back: vi.fn()
379
+ })
380
+ }));
381
+ vi.mock("@tamagui/animations-reanimated", () => ({
382
+ createAnimations: config2 => ({
383
+ ...config2,
384
+ View: void 0,
385
+ Text: void 0,
386
+ isReactNative: false,
387
+ animations: config2,
388
+ useAnimatedNumber: initial => ({
389
+ value: initial,
390
+ setValue: () => {}
391
+ }),
392
+ useAnimatedNumberReaction: () => {},
393
+ useAnimatedNumberStyle: () => ({}),
394
+ AnimatedView: ({
395
+ children
396
+ }) => children,
397
+ AnimatedText: ({
398
+ children
399
+ }) => children
400
+ })
401
+ }));
402
+ vi.mock("react-native-reanimated", () => ({
403
+ default: {
404
+ useSharedValue: init => ({
405
+ value: init
406
+ }),
407
+ useAnimatedStyle: () => ({}),
408
+ withTiming: val => val,
409
+ withSpring: val => val,
410
+ withDecay: val => val,
411
+ withSequence: (...args) => args[args.length - 1],
412
+ withDelay: (_, val) => val,
413
+ createAnimatedComponent: component => component,
414
+ useDerivedValue: fn => ({
415
+ value: fn()
416
+ }),
417
+ useAnimatedRef: () => ({
418
+ current: null
419
+ }),
420
+ runOnJS: fn => fn,
421
+ runOnUI: fn => fn,
422
+ Extrapolation: {
423
+ CLAMP: "clamp"
424
+ },
425
+ Layout: {
426
+ duration: () => ({})
427
+ },
428
+ FadeIn: {
429
+ duration: () => ({})
430
+ },
431
+ FadeOut: {
432
+ duration: () => ({})
433
+ },
434
+ Easing: {
435
+ linear: v => v,
436
+ ease: v => v,
437
+ bezier: () => v => v
438
+ },
439
+ measure: () => null,
440
+ scrollTo: () => {},
441
+ makeMutable: init => ({
442
+ value: init
443
+ })
444
+ },
445
+ useSharedValue: init => ({
446
+ value: init
447
+ }),
448
+ useAnimatedStyle: () => ({}),
449
+ withTiming: val => val,
450
+ withSpring: val => val,
451
+ createAnimatedComponent: component => component,
452
+ runOnJS: fn => fn,
453
+ runOnUI: fn => fn,
454
+ useDerivedValue: fn => ({
455
+ value: fn()
456
+ }),
457
+ useAnimatedRef: () => ({
458
+ current: null
459
+ }),
460
+ Easing: {
461
+ linear: v => v,
462
+ ease: v => v,
463
+ bezier: () => v => v
464
+ },
465
+ FadeIn: {
466
+ duration: () => ({})
467
+ },
468
+ FadeOut: {
469
+ duration: () => ({})
470
+ },
471
+ Layout: {
472
+ duration: () => ({})
473
+ }
474
+ }));
475
+ vi.mock("@react-navigation/native", () => ({
476
+ NavigationContainer: ({
477
+ children
478
+ }) => children,
479
+ useNavigation: () => ({}),
480
+ useRoute: () => ({}),
481
+ useFocusEffect: () => {}
482
+ }));
483
+ if (typeof document !== "undefined") {
484
+ const style = document.createElement("style");
485
+ style.textContent = "html { pointer-events: auto !important; }";
486
+ document.head.appendChild(style);
487
+ }
488
+ const ignoredTestWarnings = ["React does not recognize the `scaleIcon` prop on a DOM element", "React does not recognize the `pressTheme` prop on a DOM element", "React does not recognize the `marginLeft` prop on a DOM element", "Received `true` for a non-boolean attribute `editable`", "non-boolean attribute `editable`", "Received `true` for a non-boolean attribute `elevate`", "Received `true` for a non-boolean attribute `bordered`", "react-i18next:: useTranslation: You will need to pass in an i18next instance"];
489
+ const originalConsoleWarn = console.warn.bind(console);
490
+ const originalConsoleError = console.error.bind(console);
491
+ const shouldIgnoreTestWarning = args => {
492
+ const message = args.map(arg => {
493
+ if (typeof arg === "string") return arg;
494
+ if (arg instanceof Error) return arg.message;
495
+ return String(arg);
496
+ }).join(" ");
497
+ if (ignoredTestWarnings.some(pattern => message.includes(pattern))) {
498
+ return true;
499
+ }
500
+ const firstArg = typeof args[0] === "string" ? args[0] : "";
501
+ const hasNonBooleanTemplate = firstArg.includes("non-boolean attribute");
502
+ if (hasNonBooleanTemplate) {
503
+ const tokens = args.map(arg => String(arg));
504
+ if (tokens.includes("editable") || tokens.includes("elevate") || tokens.includes("bordered")) {
505
+ return true;
506
+ }
507
+ }
508
+ return false;
509
+ };
510
+ let consoleWarnSpy = null;
511
+ let consoleErrorSpy = null;
512
+ beforeEach(() => {
513
+ Object.defineProperty(globalThis, "IntersectionObserver", {
514
+ value: MockIntersectionObserver,
515
+ writable: true,
516
+ configurable: true
517
+ });
518
+ if (typeof window !== "undefined") {
519
+ Object.defineProperty(window, "IntersectionObserver", {
520
+ value: MockIntersectionObserver,
521
+ writable: true,
522
+ configurable: true
523
+ });
524
+ }
525
+ if (typeof global !== "undefined") {
526
+ Object.defineProperty(global, "IntersectionObserver", {
527
+ value: MockIntersectionObserver,
528
+ writable: true,
529
+ configurable: true
530
+ });
531
+ }
532
+ consoleWarnSpy = vi.spyOn(console, "warn").mockImplementation((...args) => {
533
+ if (shouldIgnoreTestWarning(args)) return;
534
+ originalConsoleWarn(...args);
535
+ });
536
+ consoleErrorSpy = vi.spyOn(console, "error").mockImplementation((...args) => {
537
+ if (shouldIgnoreTestWarning(args)) return;
538
+ originalConsoleError(...args);
539
+ });
540
+ });
541
+ afterEach(() => {
542
+ Object.defineProperty(globalThis, "IntersectionObserver", {
543
+ value: MockIntersectionObserver,
544
+ writable: true,
545
+ configurable: true
546
+ });
547
+ if (typeof window !== "undefined") {
548
+ Object.defineProperty(window, "IntersectionObserver", {
549
+ value: MockIntersectionObserver,
550
+ writable: true,
551
+ configurable: true
552
+ });
553
+ }
554
+ consoleWarnSpy?.mockRestore();
555
+ consoleErrorSpy?.mockRestore();
556
+ consoleWarnSpy = null;
557
+ consoleErrorSpy = null;
558
+ cleanup();
559
+ });
560
+ //# sourceMappingURL=setup.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["config","cleanup","createTamagui","afterAll","afterEach","beforeAll","beforeEach","vi","createAnimationFrames","_noopStorage","getItem","setItem","removeItem","clear","length","key","globalThis","localStorage","Object","defineProperty","value","writable","global","window","document","CSSStyleDeclaration","prototype","i","String","desc","getOwnPropertyDescriptor","set","configurable","enumerable","get","NodeList","forEach","Array","HTMLCollection","matchesImpl","selector","nodeType","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","matches","ownerDocument","querySelectorAll","Element","HTMLElement","hasAttributeImpl","name","hasAttribute","call","attributes","getAttributeImpl","getAttribute","nodeTypes","Node","HTMLDivElement","HTMLSpanElement","HTMLInputElement","HTMLButtonElement","HTMLFormElement","HTMLLabelElement","Text","Comment","Document","DocumentFragment","filter","Boolean","NodeType","setAttribute","submitter","type","TypeError","form","DOMException","submitEvent","Event","bubbles","cancelable","dispatchEvent","floatingUiPatched","then","floatingUiUtils","enableFocusInside","originalEnableFocusInside","container","elements","catch","noopStorage","stubGlobal","BroadcastChannel","BroadcastChannelMock","onmessage","constructor","postMessage","_message","close","indexedDB","open","onsuccess","onerror","onupgradeneeded","result","deleteDatabase","fn","Promise","resolve","Response","JSON","stringify","data","status","headers","matchMedia","addListener","removeListener","animationFrames","requestAnimationFrame","request","cancelAnimationFrame","cancel","MockResizeObserver","observe","unobserve","disconnect","ResizeObserver","MockIntersectionObserver","root","rootMargin","scrollMargin","thresholds","takeRecords","self","DataTransfer","Map","getData","format","setData","clearData","delete","ClipboardEvent","clipboardData","options","ESBuildAndJSDOMCompatibleTextEncoder","TextEncoder","encode","input","decodedURI","decodeURIComponent","encodeURIComponent","arr","Uint8Array","chars","split","charCodeAt","mock","importOriginal","actual","getSizeClass","getLayoutSizeClass","getPaneBudget","defaultMaxPanes","fallbackWidth","layoutBreakpoints","medium","viewportWidth","innerWidth","useLayoutSizeClass","useMultiPane","maxPanes","budget","ensureKeyboardModalityTracking","wasKeyboardFocus","default","SafeAreaView","children","Head","useRouter","push","replace","back","createAnimations","View","isReactNative","animations","useAnimatedNumber","initial","setValue","useAnimatedNumberReaction","useAnimatedNumberStyle","AnimatedView","AnimatedText","useSharedValue","init","useAnimatedStyle","withTiming","val","withSpring","withDecay","withSequence","args","withDelay","_","createAnimatedComponent","component","useDerivedValue","useAnimatedRef","current","runOnJS","runOnUI","Extrapolation","CLAMP","Layout","duration","FadeIn","FadeOut","Easing","linear","v","ease","bezier","measure","scrollTo","makeMutable","NavigationContainer","useNavigation","useRoute","useFocusEffect","style","createElement","textContent","head","appendChild","ignoredTestWarnings","originalConsoleWarn","console","warn","bind","originalConsoleError","error","shouldIgnoreTestWarning","message","map","arg","Error","join","some","pattern","includes","firstArg","hasNonBooleanTemplate","tokens","consoleWarnSpy","consoleErrorSpy","spyOn","mockImplementation","mockRestore"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":"AAsNA,OAAO;AACP,OAAO;AACP,SAASA,MAAA,QAAc;AACvB,SAASC,OAAA,QAAe;AACxB,SAASC,aAAA,QAAqB;AAC9B,SAASC,QAAA,EAAUC,SAAA,EAAWC,SAAA,EAAWC,UAAA,EAAYC,EAAA,QAAU;AAC/D,SAASC,qBAAA,QAA6B;AA3MtC,MAAMC,YAAA,GAAe;EACnBC,OAAA,EAASA,CAAA,KAAM;EACfC,OAAA,EAASA,CAAA,KAAM,CAAC;EAChBC,UAAA,EAAYA,CAAA,KAAM,CAAC;EACnBC,KAAA,EAAOA,CAAA,KAAM,CAAC;EACd,IAAIC,OAAA,EAAS;IACX,OAAO;EACT;EACAC,GAAA,EAAKA,CAAA,KAAM;AACb;AACA,IAAI,OAAOC,UAAA,KAAe,eAAe,OAAQA,UAAA,CAAmBC,YAAA,KAAiB,aAAa;EAChGC,MAAA,CAAOC,cAAA,CAAeH,UAAA,EAAY,gBAAgB;IAAEI,KAAA,EAAOX,YAAA;IAAcY,QAAA,EAAU;EAAK,CAAC;AAC3F;AACA,IAAI,OAAOC,MAAA,KAAW,eAAe,EAAE,kBAAkBA,MAAA,GAAS;EAChEJ,MAAA,CAAOC,cAAA,CAAeG,MAAA,EAAQ,gBAAgB;IAAEF,KAAA,EAAOX,YAAA;I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