FountainJS / generator-fountain-react

Yeoman 'fountain' generator to start a webapp with React
http://fountainjs.io
MIT License
36 stars 11 forks source link

[Q] Using mocha, jsdom, and enzyme for test instead of karma #73

Open gozes opened 7 years ago

gozes commented 7 years ago

I prefer to use jsdom and enzyme for my test and mocha for running test instead of karma. Looking at the generated project it is not clear to me where among all the gulp configuration do I need to make changes to get it work. Can anyone can point me in the right direction?

Swiip commented 7 years ago

Gulp test task refers to karma tasks which are localized in the gulp_tasks/karma.js.

If you want to try anything else, simply install mocha manually and follow a tuto for mocha / react / jsdom. You should be able to make it works in parallel of Karma. After that, you have to run mocha from Gulp either with the Node API or a Gulp plugin.

Once you're satisfied, remove all reference to Karma in your project.

gozes commented 7 years ago

@Swiip thanks will give it try in a few