Filesystem abstraction layer for dependency injection. Enables mocking in tests without monkey-patching Node.js fs module.
- Source
Methods
(inner) setAdapter(adapter)
Injects custom fs implementation for testing
Parameters:
| Name | Type | Description |
|---|---|---|
adapter | FsAdapter |
- Source