lmtm

lmtm/node-env-test

Set $NODE_ENV to "test" works best with mocha --require=env-test

JavaScript
35
1
MIT License

This project is a utility for Node.js that automatically sets the `NODE_ENV` environment variable to "test" when running tests. It is designed to work seamlessly with Mocha by using the `--require` flag, eliminating the need to manually set the environment in each test file. It is ideal for developers who want a reliable and consistent testing environment without relying on external configurations like Makefiles or package.json.

Total donated
Undistributed
Share with your subscribers: