mocked-exports provides a straightforward way to mock named exports of ES modules in your JavaScript tests. It simplifies the process of replacing imported functions or variables with test-specific versions, ensuring isolated and predictable test environments. Ideal for unit testing scenarios where external dependencies need to be controlled, it offers clean mocking and restoration mechanisms, reducing boilerplate code and improving test readability by focusing solely on the module under test's behavior.
The npm package mocked-exports saw its last releases in March 2025 (versions 0.1.0 and 0.1.1). There have been no new versions published from April to August 2025. The release frequency indicates a period of inactivity for the past several months.
The npm package "mocked-exports" saw no downloads until March 2025. Downloads rapidly increased from March to August 2025, peaking at over 2 million. September 2025 data, which is incomplete, shows significantly lower downloads, reflecting the partial month.