I'm running jasmine-node using:
node_modules/jasmine-node/bin/jasmine-node --verbose --junitreport --noColor spec
but got error:
Exception loading: /home/kuba/projects/jcubic/terminal/repo/spec/terminalSpec.js
[TypeError: Cannot read property 'extend' of undefined]
Why it don't show stack trace? I'm including jsdom and jquery with the code:
if (typeof window === 'undefined') {
var jsdom = require("jsdom").jsdom;
global.window = jsdom().parentWindow;
global.jQuery = global.$ = require("jquery")(window);
require('../js/jquery.terminal-src');
}
Anybody have a clue why I got this error, the terminalSpec.js file is on github .
通过检查源代码找到了该选项:
--captureExceptions
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.