Skip to content
all entries

Keeping exact Boolean assertions in Supaplane

Oxlint suggested truthiness matchers for tests that check an exact Boolean return value.

Supaplane's lint sweep flagged toBe(true) and toBe(false). Switching to toBeTruthy() would also accept 1. Switching to toBeFalsy() would let undefined pass. The original assertions check that the return value is exactly the expected Boolean. Vitest matcher behaviour

I disabled the two matcher rules in the test-file override and added fixtures for both .test.ts and .spec.ts. Both fixtures reproduced the warnings under the old config. The updated policy cleared 23 diagnostics, and the focused-test rejection fixture still passed. Supaplane's lint policy change

related entries