bahmutov / snap-shot

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

Setup test project against Ava #30

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

Especially interesting async/await compatibility.

test('foo', async t => {
  const someObject = {...}
  t.snapshot(someObject) // built-in
  snapshot(someObject)
})
bahmutov commented 7 years ago

Here https://github.com/bahmutov/snap-shot-ava-test