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

@@ -1,6 +1,7 @@
import { expect, tap } from '../../ts_tapbundle/index.js';
tap.test('This test should fail', async () => {
tap.test('This test should fail', async (tools) => {
tools.allowFailure();
console.log('This test will fail on purpose');
expect(true).toBeFalse();
});