/**
 * Trickery to ensure that the mock is the default export.
 */

export default jest.fn()

/**
 * Trickery to ensure that the mock is the default export.
 */

module.exports = jest.fn()
module.exports.default = module.exports

Use commonjs module system for mocks.