---
title: "Discussion on \"Testing a Filesystem Service with memfs + FakeWatchService: No Disk Required\" | Hashnode"
description: "Discussion on \"Testing a Filesystem Service with memfs + FakeWatchService: No Disk Required\". A deep dive into testing a filesystem service using memfs to replace fs and a hand-written Fake to replace chokidar, making filesystem tests fast, deterministic, and security-aware."
url: "https://hashnode.com/posts/memfs-fake-watch-testing/69f04c725d74885db225fb91"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Testing a Filesystem Service with memfs + FakeWatchService: No Disk Required](https://recca0120.hashnode.dev/memfs-fake-watch-testing?utm_source=hashnode&utm_medium=feed)

A deep dive into testing a filesystem service using memfs to replace fs and a hand-written Fake to replace chokidar, making filesystem tests fast, deterministic, and security-aware.

Apr 28 · 6 min read · recca0120.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#testing](https://hashnode.com/tag/testing)
-   [#vitest](https://hashnode.com/tag/vitest)

## Written by

[recca0120](https://hashnode.com/@recca0120)

@recca0120 · Taipei, Taiwan

  
[View profile](https://hashnode.com/@recca0120)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
