You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when putting fixture in my karma frameworks and running the tests.
> ./node_modules/karma/bin/karma start
INFO [karma]: Karma v0.12.16 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.7 (Linux)]: Connected on socket yGSejLEmeS9OHiH1hTUP with id 85499202
PhantomJS 1.9.7 (Linux) ERROR
ReferenceError: Can't find variable: Fixture
at /home/nik/src/dmt/node_modules/karma-fixture/lib/adapter.js:3
PhantomJS 1.9.7 (Linux): Executed 0 of 0 ERROR (0.055 secs / 0 secs)
The text was updated successfully, but these errors were encountered:
This is due to the fact that you probably declared requirejs inside the frameworks array after fixture.
This leads to require getting loaded before fixture, so fixture gets defined() via require.js and not registered on global scope.
I could modify adapter.js to try to require() it via require.js as well, but i think i should not.
I personally place requirejs in the beginning of this array, so that all of the other frameworks get to register on global scope (as they were meant?) before require.js starts to register stuff for its own.
I'm getting this error when putting
fixture
in my karma frameworks and running the tests.The text was updated successfully, but these errors were encountered: