jamesshore / quixote

CSS unit and integration testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReferenceError: Can't find variable: require

Turbie333 opened this issue · comments

I get this error when trying to run my first test. I have tried searching for solutions and most point to using npm to install browserify and watchify but this doesn't seem to help either.

(The error you're getting is the result of not having a CommonJS module loader. If you're not familiar with CommonJS, it's hard to explain briefly. But the example project has everything you need already set up for you.)

I am already using karma for unit testing and now want to use quixote for css testing. I installed quixote via NPM and can't seem to get it working. I am using the same code from the example video just to see if I can get it running but I am getting the error specified above.

Your problem is most likely due to Karma mis-configuration. Did you run the example project?

(Not the example code in the video, but the whole project located in the /example directory.)

You can also use the karma-quixote plugin. If you do that, remove the require("quixote") line.

@wfsandoval12 I'm closing this issue due to lack of response. If you still need help, please re-open it.