balena-supervisor/docker-compose.dev.yml
Felipe Lalanne 6d004f0994 Setup docker-compose.test
This allows to run integration tests during development and on CI
with the right dependencies. There are several changes that this
involves, but the gist of it is that a test environment is setup using
`docker-compose.test.yml`. This file is loaded by `resin-ci` during the
build, and ensures that integration tests are ran after setting up all
requirements. This commit also defines a test environment command that
can be setup using `npm run test:env` in order to run tests in a local
development machine.
2022-08-24 16:07:20 -04:00

10 lines
199 B
YAML

version: '2.3'
services:
sut:
command: sleep infinity
volumes:
- './.mochapodrc.yml:/usr/src/app/.mochapodrc.yml'
- './src:/usr/src/app/src'
- './test:/usr/src/app/test'