mongo-ci
This library is created to prepare environment for testing with MongoDB, especially designed to work well with CI.
Installation
$ npm install -D mongo-ci
Usage
; describte'Repository Test',;
The mock data:
; ;
In the GitLab-CI configuration, i.e. .gitlab-ci.yml
:
variables: NODE_VERSION: 12.0.0 test:jasmine: stage: test image: node:${NODE_VERSION} allow_failure: false services: - mongo variables: MONGO_HOST: 'mongo' Host: 'mongo' Database: 'test' script: - npm test
Travis-CI configuration is similar. For further details please refer to this document.