UNPKG

hygen

Version:

The scalable code generator that saves you time.

15 lines (12 loc) 216 B
const mock = require('mock-fs') const ftest = (msg, files, test) => { it(msg, async () => { try { mock(files) await test() } finally { mock.restore() } }) } module.exports = ftest