They're technically correct (the best kind, ofc 👌) and I used to do this myself, but this is another reason I now prefer files.
We'll have to fall back completely on heuristics for these packages (e.g. classnames), but I honestly think test folders cover 90% of the npm package bloat I care about.