run frontend tests in test environment

This commit is contained in:
Ulf Gebhardt 2021-12-10 04:27:13 +01:00
parent 5ff262df91
commit fcd355e486
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -380,7 +380,7 @@ jobs:
##########################################################################
- name: frontend | Unit tests
run: |
docker run -v ~/coverage:/app/coverage --rm gradido/frontend:test yarn run test
docker run --env NODE_ENV=test -v ~/coverage:/app/coverage --rm gradido/frontend:test yarn run test
cp -r ~/coverage ./coverage
##########################################################################
# COVERAGE REPORT FRONTEND ###############################################