Browse Source

HUE-8888 [ci] Upgrade jsdom to avoid jest Cannot read property 'some' of undefined

https://github.com/facebook/jest/issues/10489
Romain 5 years ago
parent
commit
2aa20153c3
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .circleci/config.yml
  2. 1 1
      package.json

+ 1 - 0
.circleci/config.yml

@@ -159,6 +159,7 @@ jobs:
 
 
             # https://jestjs.io/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-andor-continuous-integration-ci-server
             # 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
             sed -i 's/"test": "jest"/"test": "jest --runInBand"/g' package.json
+
             npm run test
             npm run test
 
 
       - store_artifacts:
       - store_artifacts:

+ 1 - 1
package.json

@@ -109,7 +109,7 @@
     "identity-obj-proxy": "^3.0.0",
     "identity-obj-proxy": "^3.0.0",
     "jest": "26.0.1",
     "jest": "26.0.1",
     "jest-environment-jsdom-sixteen": "1.0.3",
     "jest-environment-jsdom-sixteen": "1.0.3",
-    "jsdom": "16.2.2",
+    "jsdom": "16.4.0",
     "less-loader": "6.1.2",
     "less-loader": "6.1.2",
     "lesshint": "6.3.7",
     "lesshint": "6.3.7",
     "license-checker": "^25.0.1",
     "license-checker": "^25.0.1",