Skip to content

Commit

Permalink
fix(MSW): fixed so that Function can be accepted with mock option (
Browse files Browse the repository at this point in the history
  • Loading branch information
soartec-lab authored Apr 25, 2024
1 parent 7feae35 commit 25a5e39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/orval/src/utils/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const normalizeOptions = async (
let mock = outputOptions.mock ?? globalOptions.mock;
if (typeof mock === 'boolean' && mock) {
mock = DEFAULT_MOCK_OPTIONS;
} else if (isFunction(mock)) {
} else if (!mock) {
mock = undefined;
} else {
Expand Down

0 comments on commit 25a5e39

Please sign in to comment.