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 a61ecf2 commit 9a3f95aCopy full SHA for 9a3f95a
app/msw-mock-api.ts
@@ -84,9 +84,13 @@ export async function startMockAPI() {
84
// pass through to the server
85
onUnhandledRequest(req) {
86
const path = new URL(req.url).pathname
87
+ // Files that get pulled in dynamic imports. It is expected that MSW will
88
+ // not handle them and they fall through to the dev server, so warning
89
+ // about them is just noise.
90
const ignore = [
- path.includes('libs/ui/assets'), // assets obviously loaded from file system
- path.startsWith('/forms/'), // lazy loaded forms
91
+ path.includes('libs/ui/assets'),
92
+ path.startsWith('/app'),
93
+ path.startsWith('/node_modules'),
94
].some(Boolean)
95
if (!ignore) {
96
// message format copied from MSW source
0 commit comments