ci: skip e2e tests on netlify coverage builds

This commit is contained in:
Evan You 2019-12-23 10:51:28 -05:00
parent 6614f21bf4
commit 80f8b46177

View File

@ -24,5 +24,10 @@ module.exports = {
'^@vue/(.*?)$': '<rootDir>/packages/$1/src' '^@vue/(.*?)$': '<rootDir>/packages/$1/src'
}, },
rootDir: __dirname, 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/']
} }