Skip to content
all entries

Letting Supaplane tests finish with cleanup

Oxlint flagged tests that closed fixtures after asserting or checked a list in a loop. Two fixtures pin the scope of the exception.

While working through Supaplane's lint warnings, I found tests that were flagged because they ended by closing a fixture or asserting inside a loop. Oxlint's rule expects a final assertion at the end of the test block. Oxlint's final assertion rule

I proposed switching off that style rule in test and spec files. I exercised the real lint config against two fixtures. One asserts a result and then calls close(). The other checks every value in a loop. Both fixtures failed with the old config and passed with the override. The policy test that rejects a focused test still passes. Supaplane's lint change

related entries