]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
ci: skip e2e tests on netlify coverage builds
authorEvan You <yyx990803@gmail.com>
Mon, 23 Dec 2019 15:51:28 +0000 (10:51 -0500)
committerEvan You <yyx990803@gmail.com>
Mon, 23 Dec 2019 15:51:28 +0000 (10:51 -0500)
jest.config.js

index 088648053da928d729e9ddbc5670e3b7dc459d67..748bed519d3a5e4574586f63392e4a3d1225e357 100644 (file)
@@ -24,5 +24,10 @@ module.exports = {
     '^@vue/(.*?)$': '<rootDir>/packages/$1/src'
   },
   rootDir: __dirname,
-  testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)']
+  testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)'],
+  testPathIgnorePatterns: process.env.SKIP_E2E
+    ? // ignore example tests on netlify builds since they don't contribute
+      // to coverage and can cause netlify builds to fail
+      ['/node_modules/', '/examples/__tests__']
+    : ['/node_modules/']
 }