-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
global.fetch = require('node-fetch');
global.Headers = fetch.Headers;
MR = require('mock-requests');
global.axios = require('axios');
MR.setMockUrlResponse('http://localhost:1111/t', {
mockExample: 1
});
fetch('http://localhost:1111/t').then((response) => response.json()).then(data => console.log(data));
axios.get('http://localhost:1111/t').then(resp => console.log(resp));
// request fails
Metadata
Metadata
Assignees
Labels
No labels