Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default () => {
const data = generateData({ serializeDate: false });
const restServer = JsonGraphqlServer({ data });
const handler = restServer.getHandler();
fetchMock.mock('begin:http://localhost:4000', handler);
return () => fetchMock.restore();
};
export default () => {
const data = generateData({ serializeDate: false });
const restServer = JsonGraphqlServer({ data });
const handler = restServer.getHandler();
fetchMock.mock('begin:http://localhost:4000', handler);
return () => fetchMock.restore();
};