Browse Source

HUE-9090 [ci] Adding --runInBand parameter to js tests

Romain 6 years ago
parent
commit
38f6524104
1 changed files with 3 additions and 0 deletions
  1. 3 0
      .circleci/config.yml

+ 3 - 0
.circleci/config.yml

@@ -111,6 +111,9 @@ jobs:
           name: run js tests
           name: run js tests
           command: |
           command: |
             cd /usr/share/hue
             cd /usr/share/hue
+
+            # https://jestjs.io/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-andor-continuous-integration-ci-server
+            sed -i 's/"test": "jest"/"test": "jest --runInBand"/g' package.json
             npm run test
             npm run test
 
 
       - store_artifacts:
       - store_artifacts: