mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
* fix(initializeClient.spec.js): remove condition failing test on local installations * docs: remove comments and invalid html as is required by embeddings generator and add new documentation guidelines
758 B
758 B
| title | description | weight |
|---|---|---|
| 🧪 Testing During Development | How to locally test the app during development. | -6 |
Locally test the app during development
Local Unit Tests
Before submitting your updates, it’s crucial to verify they pass all unit tests. Follow these steps to run tests locally:
- copy your
.env.examplefile in the/apifolder and rename it to.env
cp .env.example ./api/.env
- add
NODE_ENV=CIto your/api/.envfile npm run test:clientnpm run test:api
!!! failure "Warning"
When executed locally, this API unit test is expected to fail. This should be the only error encountered.