We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef1d76d commit 2aec5f5Copy full SHA for 2aec5f5
1 file changed
workspaces/bulk-import/plugins/bulk-import-backend/__fixtures__/handlers.ts
@@ -21,6 +21,9 @@ export const LOCAL_ADDR = `http://${localHostAndPort}`;
21
22
export const LOCAL_GITLAB_ADDR = `https://gitlab.com/api/v4`;
23
24
+const CATALOG_API_LOCATIONS_LOCAL_ADDR =
25
+ /^https?:\/\/localhost:\d+\/api\/catalog\/locations$/;
26
+
27
export function loadTestFixture(filePathFromFixturesDir: string) {
28
return require(`${__dirname}/${filePathFromFixturesDir}`);
29
}
@@ -495,4 +498,8 @@ export const DEFAULT_TEST_HANDLERS: RestHandler<
495
498
return res(ctx.status(404));
496
499
},
497
500
),
501
502
+ rest.get(CATALOG_API_LOCATIONS_LOCAL_ADDR, (_, res, ctx) =>
503
+ res(ctx.status(200), ctx.json([])),
504
+ ),
505
];
0 commit comments