2
0
Эх сурвалжийг харах

ci: skip e2e tests on netlify coverage builds

Evan You 6 жил өмнө
parent
commit
80f8b46177
1 өөрчлөгдсөн 6 нэмэгдсэн , 1 устгасан
  1. 6 1
      jest.config.js

+ 6 - 1
jest.config.js

@@ -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/']
 }