Fetching latest headlines…
hollowtest 0.5.1: quieter JS on real suites
NORTH AMERICA
🇺🇸 United StatesJuly 21, 2026

hollowtest 0.5.1: quieter JS on real suites

0 views0 likes0 comments
Originally published byDev.to

hollowtest 0.5.1 is a noise-reduction patch for the new JS/TS engine.

What was wrong

On a large Vitest suite (zod), first-pass scanning treated type-level tests as hollow: expectTypeOf, assertType, util.assertEqual<A,B>(…), @ts-expect-error bodies, and helpers like expectMethodMatch(...).

Those are real checks — just not expect(value).toBe(...).

What changed

The JS classifier now treats as non-hollow:

  • expectTypeOf / assertType / assertEqual<…>
  • @ts-expect-error / @ts-ignore type-expectation tests
  • Named helpers: expectFoo, assertBar, *Assert, *Expect, …

Result

Rough dogfood on zod (~1850 collected tests): findings dropped from the mid-hundreds to ~7%, mostly intentional smoke tests that only call .parse() and rely on throw-on-fail (still HT001 by design — use a baseline if you want them quiet).

is (sindresorhus): 63 tests, 0 findings.

pip install -U git+https://github.com/SybilGambleyyu/[email protected]

Comments (0)

Sign in to join the discussion

Be the first to comment!