mock-fs

Configurable mock for the fs module (by tschaub)

Mock-fs Alternatives

Similar projects and alternatives to mock-fs

  • jest

    473 mock-fs VS jest

    Delightful JavaScript Testing.

  • mocha

    138 mock-fs VS mocha

    ☕️ simple, flexible, fun javascript test framework for node.js & the browser

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • fs-extra

    16 mock-fs VS fs-extra

    Node.js: extra methods for the fs object like copy(), remove(), mkdirs()

  • output-files

    Output a tree of files and directories by providing an object. Especially useful for testing with real files.

  • with-local-tmp-dir

    Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing.

  • expect

    2 mock-fs VS expect

    Write better assertions

  • endent

    1 mock-fs VS endent

    ⬅️ An ES6 string tag makes indentation better

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better mock-fs alternative or higher similarity.

mock-fs reviews and mentions

Posts with mentions or reviews of mock-fs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-04-21.
  • How to Write File-Based Tests With Real Files
    8 projects | dev.to | 21 Apr 2021
    A lot of my past projects in some way had to do with file access. I started to test with mocking libraries like mock-fs, but soon recognized that they do not work for all cases, and sometimes you are using third party libraries internally that you cannot mock easily. So I thought of a different solution and the one I'm using right now for most projects actually uses real files.
  • Unit testing Node.js fs with mock-fs
    1 project | dev.to | 3 Mar 2021
    In this post I'll be showing you how you can use mock-fs to easily unit test your Node.js scripts.

Stats

Basic mock-fs repo stats
2
896
0.0
7 months ago

tschaub/mock-fs is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

The primary programming language of mock-fs is JavaScript.


Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com