This package provides TypeScript definitions for the mock-fs library, which allows you to create in-memory file systems for testing purposes. Using these definitions improves type safety and developer experience when working with mock-fs in TypeScript projects. It offers accurate type hints and autocompletion, ensuring proper usage of the library's API surface for seamless integration. Benefit from compile-time error detection and improved code maintainability when mocking file systems in your TypeScript tests.
@types/mock-fs has had sporadic releases since 2016. Releases were more frequent initially, with a few releases in 2019, 2020, and 2021. In late 2023, there were three releases in quick succession. There have been no releases in 2024 or 2025 as of September 7, 2025. The releases are irregular, with long periods of inactivity.
@types/mock-fs downloads show fluctuating popularity. From March 2024 to August 2025, downloads generally trended upwards. There was a notable increase during the summer of 2025, with June, July and August surpassing 1 million. September 2025 data is incomplete, showing lower downloads so far.