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 6604e17 commit 5d0ac49Copy full SHA for 5d0ac49
packages/mock/src/msw/mocks.ts
@@ -23,7 +23,7 @@ const getMockPropertiesWithoutFunc = (properties: any, spec: OpenAPIObject) =>
23
: stringify(value as string)!;
24
25
acc[key] = implementation?.replaceAll(
26
- /import_faker.defaults|import_faker.faker/g,
+ /import_faker\.defaults|import_faker\.faker|_faker\.faker/g,
27
'faker',
28
);
29
return acc;
@@ -284,7 +284,7 @@ export const getMockOptionsDataOverride = (
284
: stringify(responseOverride);
285
286
return implementation?.replaceAll(
287
288
289
290
};
0 commit comments