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); const outcome = getOutcome(test);
// Strip root and project names. // Strip root and project names.
const key = test.titlePath().slice(2).join(' '); const key = test.titlePath().slice(2).join(' ');
if (!expectations.has(key) || expectations.get(key) === 'unknown' || if (outcome === 'timeout')
(expectations.get(key) === 'fail' && outcome === 'pass'))
expectations.set(key, outcome); expectations.set(key, outcome);
} }
const keys = Array.from(expectations.keys()); const keys = Array.from(expectations.keys());