import { summaryReporter, defaultReporter, dotReporter } from '@web/test-runner' // There is a bug in the summaryReporter made with this PR https://github.com/modernweb-dev/web/pull/2126 // It captures the buffered logger into cachedLogger for reuse later for the test run finished error reporting // But the buffered logger in finished its buffer flush before this test error reporting so these logs go nowhere // to resolve this for now reusing dotReporter which reports errors well but disabled its . test reporting const errorReporter = dotReporter() delete errorReporter.reportTestFileResults const config = { testRunnerHtml: (testFramework) => ` web-test-runner Tests

web-test-runner Test Suite

Work Area
`, nodeResolve: true, coverage: true, coverageConfig: { include: ['src/htmx.js'] }, files: [ 'test/attributes/**/*.js', 'test/core/**/*.js' ], reporters: [summaryReporter({ flatten: false }), errorReporter, defaultReporter({ reportTestProgress: true, reportTestResults: false })] } export default config