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 94d8675 commit a7e7e1aCopy full SHA for a7e7e1a
src/yet-another-fetch-mock.ts
@@ -76,9 +76,12 @@ class FetchMock {
76
77
if (typeof matchingRoute === 'undefined') {
78
if (this.configuration.enableFallback) {
79
+ console.warn(
80
+ `Did not find any matching route for: ${method.toUpperCase()} ${url}. Defaulting to the real fetch-implementation.`
81
+ );
82
response = this.realFetch.call(this.scope, input, init);
83
} else {
- throw new Error(`Did not find any matching route for url: ${url}`);
84
+ throw new Error(`Did not find any matching route for: ${method.toUpperCase()} ${url}.`);
85
}
86
87
pathParams = findPathParams(url, matchingRoute.matcher.matcherUrl);
0 commit comments