Sunday, 15 September 2013

configuration - configuring Karma with Jasmine: getJasmineRequireObj is not defined -



configuration - configuring Karma with Jasmine: getJasmineRequireObj is not defined -

it gave me error:

chrome 37.0.2019 (mac os x 10.9.3) error uncaught referenceerror: getjasminerequireobj not defined @ /users/lucia/desktop/test-yo-karma/dev/vendors/jasmine/src/core/spec.js:1

but made sure file did exist. , couldn't find error anywhere?

originally had in karma.conf.js:

files: [ {pattern: 'dev/vendors/**/*.js', included: false}, {pattern: 'dev/scripts/**/*.js', included: false}, {pattern: 'test/**/*spec.js', included: false}, 'test/test-main.js' ]

it turns out,

the order of files included matters you're not supposed include irrelevant files (e.g. whole of /vendors)

so should include separate files, in order of dependency instead.

[the unhelpful documentation]

configuration karma-runner karma-jasmine

No comments:

Post a Comment