We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b0356 commit ce1f4e0Copy full SHA for ce1f4e0
jest.config.js
@@ -1,5 +1,4 @@
1
module.exports = {
2
preset: 'ts-jest',
3
testEnvironment: 'jsdom',
4
- verbose: true,
5
};
src/mocks.ts
@@ -172,6 +172,7 @@ function handleRestMock({
172
status: responseCode,
173
headers: responseHeaders,
174
175
+
176
switch (method) {
177
case 'GET':
178
fetchMock.get(url, () => addDelay(delay).then(() => finalResponse), {
@@ -210,7 +211,8 @@ function handleRestMock({
210
211
}
212
213
-/** const graphQLMocks = mocks.filter(ethod for a GraphQL mock.
214
+/**
215
+ * Mocks the right HTTP method for a GraphQL mock.
216
*/
217
function handleGraphQLMock({ url, operations }: GraphQLMock) {
218
const graphQLErrorResponse = { errors: [] };
0 commit comments