Message from JavaScript discussions

August 2017

— I use jasmine which puts it's tests in spec directory

— 

I've been playing all afternoon with Typescript and eventually I came across two different approaches... mocha+chai which requires compiling the tests or Jest which doesn't

— Hmm

— What's the spec directory for?

— I am pretty sure you can make them optional if you use npm, using the devDependencies field in package.json

Message permanent page

— Should they be optional?

— For production builds I don't include tests, but I don't know of any reason not to

— Ugh. I'm used to Salesforce platform where you have to carry your tests EVERYWHERE

— But no idea what Node best practices are

— Haha

— Me neither I am publishing my first ever npm package

— Sweet :)