unorm
unorm copied to clipboard
npm ignoring tests means `npm run unorm test` doesn't work
I'd like to include unorm in a module, and use npm run unorm test
to run the tests, but none of the tests are included in npm.
Shortly, why?
We omit tests from published package, as they are development-related code. And Travis makes sure that we never release broken package.
My module will combine multiple shim modules, including unorm - globals will be modified, and I want to make sure that unorm's tests aren't broken by another module's global changes.
The only way I can avoid running unorm's tests via npm, is by duplicating them myself.
That one is very exoteric usage need. I'd like keep package size small for every user.
You could pull this repository as submodule if you need the tests from here.
AFAIK you have to monkey patch test suite anyway, as unorm's test-suite uses local instance of unorm - there aren't other packages messing up with globals. Or did I get it wrong?
@walling What you think about this?
It's typical for npm modules to include their tests. Reducing package size is the job of a deploy process, not npm.