这是从今天早上开始发生的,没有任何变化,检查了师父的小费,仍然面对这个问题,不幸的是,谷歌使我无处可寻。
我已经尝试过Npm I,npm ci,删除的node_modules,package-lock.json,升级的笑话,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个不会因未知原因而失败。