Integration used to test your app with its external dependencies
- Give more Confidence
- Take longer time
The same as unit test so you can quickly watch those files
-
Rename File: Rename
./config/config.env.env
to./config/config.env.
-
Add Values: Open config.env and fill in:
- NODE_ENV: Set environment mode.
- PORT: Specify application port.
- DATABASE_URI: Database connection URI.
- DATABASE: Main database name.
- DATABASE_TEST: Testing database name.
- DATABASE_PASSWORD: Database password.
- beforeAll
- afterAll
- beforeEach
- afterEach