Version: 0.7.00.7.10.7.20.8.00.8.10.8.20.8.30.8.4-interactive.00.8.4-interactive.10.8.4-interactive.70.8.4-interactive.91.0.0-01.0.0-11.0.0-31.0.0-41.0.0-beta.11.0.0-beta.31.0.0-beta.41.0.0-beta.51.0.0-rc.01.0.0-rc.41.0.0-rc.51.0.0-rc.61.0.0-rc.71.0.0-rc.81.0.0-rc.131.0.0-rc.151.0.02.2.02.2.3
const micro = jest.genMockFromModule('micro');
module.exports = micro;
module.exports.json = async (req) => {
if (typeof req.body === 'object') {
return req.body
}
throw new Error('Invalid JSON');
};