Skip to main content

property MockModuleOptions.defaultExport

The value to use as the mocked module's default export.

If this value is not provided, ESM mocks do not include a default export. If the mock is a CommonJS or builtin module, this setting is used as the value of module.exports. If this value is not provided, CJS and builtin mocks use an empty object as the value of module.exports.

Type #

any

你找到了你需要的东西吗?

隐私政策