{"library":"env-test","type":"library","category":null,"description":"The `env-test` package is a small, specialized utility designed to set the `NODE_ENV` environment variable to `'test'` specifically when running Mocha tests. Its primary use case is through Mocha's `--require` flag, often configured in `mocha.opts`, to ensure that test environments consistently have `process.env.NODE_ENV = 'test'` without needing to add this line to every test file or rely on shell commands that might be skipped. Released as `1.0.0`, this package has seen no updates in over nine years, indicating it is an abandoned project. While it still functions for its narrow purpose, modern Node.js projects typically utilize more comprehensive environment management solutions like `dotenv`, `cross-env`, or `env-cmd` for loading `.env` files and conditionally setting environment variables across different platforms and contexts.","language":"javascript","status":"abandoned","version":"1.0.0","tags":["javascript","mocha","env","test"],"last_verified":"Wed May 27","install":[{"cmd":"npm install env-test","imports":["mocha --require env-test","/* no direct code import needed, used via CLI */"]},{"cmd":"yarn add env-test","imports":[]},{"cmd":"pnpm add env-test","imports":[]}],"homepage":null,"github":"https://github.com/lmtm/node-env-test","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/env-test","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/env-test/compatibility"}}