Open alexfinnarn opened 4 years ago
There are several snapshot tests in the codebase, but the components with theThing
in them always render with a different value for that.
I'm not sure why I can't just hard-code that value, but I think there are cases where that won't work.
I haven't included any snapshots yet, but I think this is just rendering the component and using a JSON transform method on the virtual object.
https://jestjs.io/docs/en/snapshot-testing