{"library":"babel-plugin-explicit-exports-references","type":"library","category":null,"description":"A Babel plugin that transforms internal references to a module's exports so they use `module.exports` instead of direct local variable references. This enables mocking of exported functions in Jest with Babel/TypeScript, even when those functions call each other internally within the same module. Version 1.0.2, actively maintained. Key differentiator: addresses the common problem of internal function references not being mockable in test environments, unlike other solutions that require manual refactoring or alternative mocking strategies.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","babel","rewire","jest","function","mock","spy","exported","single","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-explicit-exports-references","imports":["module.exports = { plugins: ['explicit-exports-references'] }","plugins: [['explicit-exports-references', { transformAssignExpr: true }]]","module.exports = { env: { test: { plugins: ['explicit-exports-references'] } } }"]},{"cmd":"yarn add babel-plugin-explicit-exports-references","imports":[]},{"cmd":"pnpm add babel-plugin-explicit-exports-references","imports":[]}],"homepage":null,"github":"https://github.com/Xunnamius/babel-plugin-explicit-exports-references","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-explicit-exports-references","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-explicit-exports-references/compatibility"}}