chore(bidi): write custom expectations only for timing out tests

This commit is contained in:
Yury Semikhatsky 2025-01-09 10:54:42 -08:00
parent 9f32c858e0
commit a8e5366330

View file

@ -56,8 +56,7 @@ class ExpectationReporter implements Reporter {
const outcome = getOutcome(test);
// Strip root and project names.
const key = test.titlePath().slice(2).join(' ');
if (!expectations.has(key) || expectations.get(key) === 'unknown' ||
(expectations.get(key) === 'fail' && outcome === 'pass'))
if (outcome === 'timeout')
expectations.set(key, outcome);
}
const keys = Array.from(expectations.keys());