bahmutov / snap-shot

Jest-like snapshot feature for the rest of us, works magically by finding the right caller function
169 stars 3 forks source link

Make sure values are serializable before comparison #25

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

Otherwise new value is different from parsed / loaded one. For example if it has "Function" values

const v = {foo: 'foo', toString: () => {})
snapshot(v)