fix(tapbundle): treat tests that call tools.allowFailure() as passing and update tests to use tools parameter

This commit is contained in:
2026-01-25 22:20:14 +00:00
parent d92850e1d2
commit fdc84a2d83
6 changed files with 17 additions and 7 deletions

View File

@@ -47,6 +47,7 @@ tap.test('metric test fast 3 - minimal work', async () => {
// Test to verify that failed tests still contribute to timing metrics
tap.test('metric test that fails - 60ms before failure', async (tools) => {
tools.allowFailure();
await tools.delayFor(60);
expect(true).toBeFalse(); // This will fail
});