girder / girder_web_components

Reusable Javascript and VueJS components for interacting with a Girder server.
https://gwc.girder.org
Apache License 2.0
16 stars 9 forks source link

Consider using jest's snapshot testing for components #33

Open zachmullen opened 5 years ago

zachmullen commented 5 years ago

When using shallow mount, these are pretty lightweight plaintext files, and updating them is straightforward. They can provide an automated sanity check, which is nice, but we should consider whether that's worth it from a cost/benefit perspective.

zachmullen commented 5 years ago

The burden of adding one is very small in the test code:

expect(vm.$el).toMatchSnapshot();