From 52d58afaf465018bba7a268def090435f78a6680 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 21 Feb 2022 15:36:32 +0100 Subject: [PATCH] try frontend unot tests without build --- .github/workflows/test.yml | 20 +------------------- backend/package.json | 2 +- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ebefe394..c67a63f4d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -339,7 +339,7 @@ jobs: unit_test_frontend: name: Unit tests - Frontend runs-on: ubuntu-latest - needs: [build_test_frontend] + #needs: [nothing] steps: ########################################################################## # CHECKOUT CODE ########################################################## @@ -347,16 +347,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 ########################################################################## - # DOWNLOAD DOCKER IMAGES ################################################# - ########################################################################## - - name: Download Docker Image (Frontend) - uses: actions/download-artifact@v2 - with: - name: docker-frontend-test - path: /tmp - - name: Load Docker Image - run: docker load < /tmp/frontend.tar - ########################################################################## # UNIT TESTS FRONTEND #################################################### ########################################################################## - name: frontend | Unit tests @@ -364,14 +354,6 @@ jobs: docker run --env NODE_ENV=test -v ~/coverage:/app/coverage --rm gradido/frontend:test yarn run test cp -r ~/coverage ./coverage ########################################################################## - # COVERAGE REPORT FRONTEND ############################################### - ########################################################################## - #- name: frontend | Coverage report - # uses: romeovs/lcov-reporter-action@v0.2.21 - # with: - # github-token: ${{ secrets.GITHUB_TOKEN }} - # lcov-file: ./coverage/lcov.info - ########################################################################## # COVERAGE CHECK FRONTEND ################################################ ########################################################################## - name: frontend | Coverage check diff --git a/backend/package.json b/backend/package.json index 93ab27fe4..93a954d3f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -13,7 +13,7 @@ "start": "node build/index.js", "dev": "nodemon -w src --ext ts --exec ts-node src/index.ts", "lint": "eslint . --ext .js,.ts", - "test": "TZ=UTC NODE_ENV=development jest --runInBand --coverage " + "test": "TZ=UTC NODE_ENV=development jest --runInBand --coverage --forceExit --detectOpenHandles" }, "dependencies": { "@types/jest": "^27.0.2",