uvu-inline-snapshot
v0.0.2
Published
### Installation
Downloads
9
Readme
uvu-inline-snapshot
Installation
npm i uvu uvu-inline-snapshot
Usage
const { test } = require('uvu')
const { inlineSnapshot } = require('uvu-inline-snapshot')
const add = (x,y) => x + y
test("example 1",()=>{
await inlineSnapshot(add(1,2),"")
})
test.run()
// --------------------
// will be converted to
const { test } = require('uvu')
const { inlineSnapshot } = require('uvu-inline-snapshot')
const add = (x,y) => x + y
test("example 1",()=>{
await inlineSnapshot(add(1,2),"3") // Filled for you
})
test.run()