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