News for hackers. Stuff that matters.
Re:NPM package 'isarray' is downloaded 40M times a week by slooonz on Sunday November 08, 2020 @10:45AM (#25026447)
Do you also copy-paste the 36 lines of unit tests in your project ?
Re:NPM package 'isarray' is downloaded 40M times a week by marcus_holmes on Sunday November 08, 2020 @10:55AM (#25026536)
No, I'd maybe run them once just to check it covers the corner-cases. The code is never going to change, because it's a polyfill for old browsers, and only needed for legacy environments that won't change. So if the tests pass once, they'll pass forever. There is literally no point in adding those tests to my test suite - there is no combination of changes that will ever make this fail if it passes once.