I am using command:
mocha --compilers :./test/babel-setup.js --recursive --watch
It is giving error:
ReferenceError: window is not defined
I have the following in my babel-setup.js:
require("babel/register")({
compact: false
});
I am using node 0.12.7 and "mocha": "^2.2.5" and "jsdom": "^3.1.2".
I already have jsdom installed with the project.
What is causing the error?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…