These are chat archives for brunch/brunch

13th
May 2016
Nathaniel Blackburn
@nblackburn
May 13 2016 20:20 UTC
does anyone have a good example of unit testing in node?
only seem to be able to find browser based ones
Mauro Oviedo
@moviedo
May 13 2016 20:26 UTC
@nblackburn can't u use jasmine or mocha chai to test individual methods?
import method, and run your expectations on the code
Nathaniel Blackburn
@nblackburn
May 13 2016 20:27 UTC
i have but would like to run tests as part of a build step (command line)
Mauro Oviedo
@moviedo
May 13 2016 20:27 UTC
u mean with brunch
Nathaniel Blackburn
@nblackburn
May 13 2016 20:27 UTC
yup
Mauro Oviedo
@moviedo
May 13 2016 20:28 UTC
to be honet, I'm not even sure how u run tests with brunch
Nathaniel Blackburn
@nblackburn
May 13 2016 20:29 UTC
well i would have a script in my package.json for running tests but would like to do this via the command line
but have never seen an example of that for brunch
Mauro Oviedo
@moviedo
May 13 2016 20:40 UTC
@nblackburn maybe somethign like this https://github.com/junior-ales/kickstart-brunch
Colin Bate
@colinbate
May 13 2016 20:41 UTC
I've used Ava with brunch and it runs on the command line. When I get back to a computer I'll see if I can find an example
Mauro Oviedo
@moviedo
May 13 2016 20:41 UTC
also, were u talking about continuous testing like how brunch does continuous builds?
Colin Bate
@colinbate
May 13 2016 20:42 UTC
If you are running your tests from the command line, you may not even need brunch to be involved depending on the test tool
Nathaniel Blackburn
@nblackburn
May 13 2016 20:43 UTC
@colinbate yeah, it hit me not long after posting like a ton of bricks
i really like the look of Ava so an example would be wonderful
Mauro Oviedo
@moviedo
May 13 2016 20:44 UTC
yes, Ava look very interesting
Nathaniel Blackburn
@nblackburn
May 13 2016 20:45 UTC
ah, i would need to compile components still
i am using Vue which converts them into commonjs modules
might be able to test other things without, just not this