css - How do I set up Quixote with Karma? -


quixote looks cool. having bit of trouble getting working karma. tried emulating bjorn's example getting error:

error: mismatched anonymous define() module: function () {var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new error("cannot find module '"+o+"'");throw f.code="module_not_found",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ 

in karma.conf.js, have:

files: [     'www/latest/tests/lib/jasmine-beforeall.js',     'www/latest/tests/lib/sinon-1.7.3.js',     'www/latest/tests/test-main.js',     {pattern: 'www/latest/vendor/**/*.js', included: false},     {pattern: 'www/latest/app/**/*.js', included: false},     {pattern: 'www/latest/tests/lib/*.js', included: false},     {pattern: 'www/latest/tests/specs/**/*.js', included: false},     'node_modules/quixote/dist/*.js' ], 

then in test, have

var quixote = require("../../../../node_modules/quixote/dist/quixote.js"); 

(this seems redundant having quixote in files hash make globally available wanted follow bjorn's example letter).

here's plugin made, please file tickets if doesn't work you. https://github.com/woldie/karma-quixote

npm install --save-dev karma-quixote 

Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -