practicalmeteor / meteor-chai

Depreciated - Chai.JS, wrapped for meteor
https://atmospherejs.com/practicalmeteor/chai
Other
0 stars 10 forks source link

Add test-only flag #7

Closed brent-hoover closed 7 years ago

brent-hoover commented 8 years ago

To avoid package being bundled into production.

rbabayoff commented 8 years ago

@zenweasel , we can't accept this as is, we're using chai in production code to assert function input args, and other "design by contract" principles, similar to meteor's match package. What you can do, is set an env var, such as METEOR_CHAI_TEST_ONLY, and then in the package.js, if it is set, add the test only flag in Package.describe.