chore: Drop and create test database automatically between runs

docs: Update README to specify using make to run tests
This commit is contained in:
Tom Moor
2020-11-11 16:58:45 -08:00
parent 80d74c9334
commit a94012a03a
2 changed files with 15 additions and 1 deletions

View File

@@ -9,10 +9,16 @@ build:
test:
docker-compose up -d redis postgres s3
yarn sequelize db:drop --env=test
yarn sequelize db:create --env=test
yarn sequelize db:migrate --env=test
yarn test
watch:
docker-compose up -d redis postgres s3
yarn sequelize db:drop --env=test
yarn sequelize db:create --env=test
yarn sequelize db:migrate --env=test
yarn test:watch
destroy: