firefox-devtools / devtools-core

:rocket: Packages for Firefox DevTools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider adding better snapshots to reps

gregtatum opened this issue · comments

There are nicer formatters for snapshots available, and would help the testing assertions for reps. This takes an enzyme wrapper, and renders it as a nice DOM tree string representation. I took a quick stab at adding this with #942 but got bogged down in the upgrades.

https://www.npmjs.com/package/enzyme-to-json

We would need to upgrade Jest and Enzyme in order to get this.

Thanks for starting this and sharing :)

I'll do this when reduxification of the objectInspector is over

doable after #966 lands