mocha-examples icon indicating copy to clipboard operation
mocha-examples copied to clipboard

Documentation for usage with Karma/Angular 4+

Open kbirger opened this issue 6 years ago • 7 comments

I assume that since older versions of mocha worked with older versions of Angular, that this is still possible, but all of the references I can find online for this are varied and not helpful. I think it would be helpful for this project if there was an official documentation for how to set up mocha for Karma and Angular.

kbirger avatar Feb 04 '19 21:02 kbirger

the wiki would make sense for this... but we'd need someone who's familiar with Angular to create it.

boneskull avatar Feb 04 '19 23:02 boneskull

I could if you have a template for me to go on. Any examples as to what needs to be covered would make this pretty easy for me to do

weswhite avatar Feb 05 '19 23:02 weswhite

@weswhite I'm not an owner of this project, but at a glance, this seems like a reasonable example to base it on: https://github.com/shellscape/mocha-chrome

I greatly appreciate it by the way.

kbirger avatar Feb 06 '19 02:02 kbirger

@weswhite yes, whatever is helpful for @kbirger would likely be helpful for the greater community. I can't say what's needed because I don't use Mocha with Karma & Angular (though Mocha uses Karma to test itself)

boneskull avatar Feb 06 '19 17:02 boneskull

@boneskull I figured out how to do this. Where should I put the steps? First open source contribution, sorry...

weswhite avatar Feb 08 '19 05:02 weswhite

@weswhite Create a new wiki page. make sure you link to it from the list of tutorials on the front wiki page. thanks for your help!! :heart:

boneskull avatar Feb 08 '19 17:02 boneskull

how is this going?.. i would really love to see how to make angular tests using mocha

oscarr-reyes avatar Mar 03 '19 16:03 oscarr-reyes