You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/11/27 06:47:09 UTC

[GitHub] [incubator-echarts] pissang commented on a change in pull request #11711: Test framework changed to jest and cases run in node environment

pissang commented on a change in pull request #11711: Test framework changed to jest and cases run in node environment
URL: https://github.com/apache/incubator-echarts/pull/11711#discussion_r351070970
 
 

 ##########
 File path: package.json
 ##########
 @@ -12,6 +12,24 @@
     "type": "git",
     "url": "https://github.com/apache/incubator-echarts.git"
   },
+  "jest": {
+    "testEnvironment": "node",
+    "setupFiles": [
+      "jest-canvas-mock",
+      "<rootDir>/test/ut/core/setup.js"
+    ],
+    "testMatch": [
+      "**/spec/api/*.test.js",
+      "**/spec/component/**/*.test.js",
+      "**/spec/data/*.test.js",
+      "**/spec/model/*.test.js",
+      "**/spec/scale/*.test.js",
+      "**/spec/util/*.test.js",
+      "!**/spec/api/containPixel.test.js",
+      "!**/spec/component/graphic/setOption.test.js",
+      "!**/spec/model/Component.test.js"
+    ]
+  },
 
 Review comment:
   Is there a separate jest config file?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org