Input test name when calling function
ChocolateLoverRaj opened this issue · comments
This would be useful for snapshot testing, so you don't need to explicitly re-type the snapshot name.
This is what code would look like:
test('add user', async function({ testName }) {
await assertSnapshot(testName, 'this should be same as last time')
})
So in above the testName
would equal to 'add user'?
So in above the
testName
would equal to 'add user'?
Yes