1 | {"version":3,"sources":["../../src/util/createTestInstance.js"],"names":["TestRenderer","act","args","instance","create"],"mappings":"AAAA,OAAOA,YAAP,IAAuBC,GAAvB,QAAkC,qBAAlC;AAEA;;;;;;AAKA,gBAAe,CAAC,GAAGC,IAAJ,KAAa;AACxB,MAAIC,QAAJ;AAEAF,EAAAA,GAAG,CAAC,MAAM;AACNE,IAAAA,QAAQ,GAAGH,YAAY,CAACI,MAAb,CAAoB,GAAGF,IAAvB,CAAX;AACH,GAFE,CAAH;AAIA,SAAOC,QAAP;AACH,CARD","sourcesContent":["import TestRenderer, { act } from 'react-test-renderer';\n\n/*\n * Wrap rendering code in `act()`, for lifecycle purposes.\n *\n * https://reactjs.org/docs/test-utils.html#act\n */\nexport default (...args) => {\n let instance;\n\n act(() => {\n instance = TestRenderer.create(...args);\n });\n\n return instance;\n};\n"],"file":"createTestInstance.js"} |