PdefaultExport
Bun

property

test.default.MockModuleOptions.defaultExport

defaultExport?: any

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.