diff --git a/packages/mock/src/utils.ts b/packages/mock/src/utils.ts index fd5bdedee454..92e94ced2435 100644 --- a/packages/mock/src/utils.ts +++ b/packages/mock/src/utils.ts @@ -75,6 +75,8 @@ export async function create< DefaultFramework = require(customFrameworkName as string).Framework; } + options = options ?? {} as U; + // got options from framework if (DefaultFramework) { framework = new DefaultFramework();