Closed harjis closed 6 years ago
It seems that they've renamed HTMLElement
to DOMElement
. I've used the same list of plugins that were used in jest library and now it is slightly different https://github.com/facebook/jest/blob/39423619602bd5952cc8ff55dc6b6b3f341cccf9/packages/jest-snapshot/src/plugins.js#L15-L21
Ah yes. I can fix this later to night and update the PR
I think this change is not actually needed. I think the reason why it failed in my tests was that I had pretty-format@22.2.1
as devDependency. After that I had installed this package as devDependency. What happened is that this required wrong version of pretty-format. I'm closing this PR as not needed.
Hi,
it seems that
HTMLElement
plugin has been removed. When I tried to use this library for snapshotting the tests failed with message:Do you know if just removing
prettyFormat.plugins.HTMLElement
is the correct action? It at least makes my tests not fail.