▲ | user34283 3 days ago | ||||||||||||||||
You can't realistically do that when for example you use Jest as your test runner, which alone would add 300 packages. ESLint would be another culprit, adding 80 packages. It quickly gets out of hand. To me it seems like the fewest projects could use this approach you described. | |||||||||||||||||
▲ | hu3 3 days ago | parent | next [-] | ||||||||||||||||
You usually can. You just gotta be a bit adventurous. https://github.com/lukeed/uvu is a testing library with almost no dependency. https://github.com/biomejs/biome is a linter written in Rust which in theory has a smaller attack surface. And as long as you stay some versions behind bleeding edge, you can use time in your favor to catch supply chain attacks before they reach your codebase. | |||||||||||||||||
| |||||||||||||||||
▲ | preommr 2 days ago | parent | prev [-] | ||||||||||||||||
I've resorted to just running custom scripts with if statements instead of fancy assertions. But occasionally I'll use vitest as well which has the same api as jest, and is much simpler. Especially if vite is already being used. It has a much smaller dependency tree. |