Skip to content

Commit

Permalink
fix: mock empty options (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 authored Jan 28, 2021
1 parent bc84e2e commit 7668461
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mock/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export async function create<
clearContainerCache();
clearAllLoggers();
safeRequire(`${baseDir}/src/interface`);
options = options || ({} as any);

if (options.entryFile) {
// start from entry file, like bootstrap.js
Expand Down

0 comments on commit 7668461

Please sign in to comment.