Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

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

Open
gozes opened this issue Feb 27, 2017 · 2 comments
Open

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

gozes opened this issue Feb 27, 2017 · 2 comments

Comments

@gozes
Copy link

gozes commented Feb 27, 2017

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
Copy link
Member

Swiip commented Feb 27, 2017

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
Copy link
Author

gozes commented Feb 27, 2017

@Swiip thanks will give it try in a few

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants