Это началось сегодня утром без изменений, проверил подсказку мастера и все еще сталкивается с этой проблемой, Google, к сожалению, не помог мне.
Я пробовал Npm I, npm ci, удаленные node_modules, package-lock.json, обновленный jest, jsdom.
RTL Toggle › SNAPSHOT - RTL Toggle
menlo-common: TypeError: this.domEl.isSameNode is not a function
menlo-common: 32 | it(name, function() {
menlo-common: 33 | let renderer = require("react-test-renderer");
menlo-common: > 34 | const tree = renderer.create(story, options).toJSON();
menlo-common: | ^
menlo-common: 35 | expect(tree).toMatchSnapshot();
menlo-common: 36 | });
menlo-common: 37 | };
menlo-common: at SizeAwareComponent.isSameNode [as handleDOMNode] (node_modules/react-sizeme/src/with-size.js:260:32)
menlo-common: at SizeAwareComponent.handleDOMNode [as componentDidUpdate] (node_modules/react-sizeme/src/with-size.js:200:14)
menlo-common: at commitLifeCycles (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9447:22)
menlo-common: at commitAllLifeCycles (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:10829:7)
menlo-common: at HTMLUnknownElement.callCallback (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2377:14)
menlo-common: at Object.invokeGuardedCallbackDev (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2427:16)
menlo-common: at invokeGuardedCallback (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2480:31)
menlo-common: at commitRoot (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:11041:7)
menlo-common: at node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12492:5
menlo-common: at Object.unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:255:12)
menlo-common: at completeRoot (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12491:13)
menlo-common: at performWorkOnRoot (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12420:9)
menlo-common: at performWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12328:7)
menlo-common: at performSyncWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12302:3)
menlo-common: at requestWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12171:5)
menlo-common: at scheduleWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:11986:5)
menlo-common: at scheduleRootUpdate (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12585:3)
menlo-common: at updateContainerAtExpirationTime (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12613:10)
menlo-common: at updateContainer (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12624:10)
menlo-common: at Object.create (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13057:5)
menlo-common: at Object.create (.storybook/__mocks__/facade.js:34:27)
Я ожидаю, что моментальные снимки пройдут без 17 из них по неизвестным причинам.