Files
open-wc/web-test-runner.config.mjs
2020-10-25 08:46:32 +01:00

28 lines
677 B
JavaScript

// eslint-disable-next-line import/no-extraneous-dependencies
import { playwrightLauncher } from '@web/test-runner-playwright';
export default {
files: `packages/*/test-web/*.test.(js|html)`,
nodeResolve: true,
concurrency: 10,
browsers: [
playwrightLauncher({ product: 'firefox', concurrency: 1 }),
playwrightLauncher({ product: 'chromium' }),
playwrightLauncher({ product: 'webkit' }),
],
coverage: true,
coverageConfig: {
exclude: [
'packages/testing/import-wrappers/**/*'
],
report: true,
reportDir: 'coverage',
threshold: {
statements: 80,
branches: 60,
functions: 70,
lines: 80,
}
},
};