With-local-tmp-dir Alternatives
Similar projects and alternatives to with-local-tmp-dir
-
output-files
Output a tree of files and directories by providing an object. Especially useful for testing with real files.
-
-
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.
-
-
mocha
☕️ simple, flexible, fun javascript test framework for node.js & the browser
-
-
-
fs-extra
Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
-
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.
-
react-native-localhost
⚛️ 🏡 Returns the local address of your actual development machine.
with-local-tmp-dir reviews and mentions
-
How to Write File-Based Tests With Real Files
Why not use real files for testing instead of mocking? I built an NPM package called with-local-tmp-dir that basically creates a temporary subfolder inside cwd, cds into it, runs a function, and cds back to the previous cwd afterwards. In this function you can create files and pretty much anything, run your unit under test. Afterwards the folder is removed and everything is cleaned up. You actually do not solely need to use it for tests, you can use it anywhere, but it's mostly useful for tests.
Stats
dword-design/with-local-tmp-dir 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 with-local-tmp-dir is JavaScript.