From 80f8b461771f9696c4a110e2103d29d2998d4282 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 23 Dec 2019 10:51:28 -0500 Subject: [PATCH] ci: skip e2e tests on netlify coverage builds --- jest.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index 08864805..748bed51 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/'] }