Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I load HTML fixtures for Javascript unit tests in Karma with Mocha?

Im searching for a decent test runner and unit testing framework for Javascript. My candidates are Karma and Mocha. Previously I used JsTestDriver, where adding HTML fixtures was easy, but I cant find a way how to load HTML fragments and access it from Mocha tests using Karma testrunner

like image 520
VuesomeDev Avatar asked Jun 21 '13 11:06

VuesomeDev


Video Answer


1 Answers

I have a demo that uses html fixtures with jasmine here and the demo description contains links to a screencast and github repo for running with Karma. See this link.

like image 120
Jason Weden Avatar answered Oct 21 '22 20:10

Jason Weden