From: Evan You Date: Mon, 23 Dec 2019 15:51:28 +0000 (-0500) Subject: ci: skip e2e tests on netlify coverage builds X-Git-Tag: v3.0.0-alpha.1~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80f8b461771f9696c4a110e2103d29d2998d4282;p=thirdparty%2Fvuejs%2Fcore.git ci: skip e2e tests on netlify coverage builds --- diff --git a/jest.config.js b/jest.config.js index 088648053d..748bed519d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -24,5 +24,10 @@ module.exports = { '^@vue/(.*?)$': '/packages/$1/src' }, rootDir: __dirname, - testMatch: ['/packages/**/__tests__/**/*spec.[jt]s?(x)'] + testMatch: ['/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/'] }