I use NodeJS and mocha-webpack as a testing tool. Then I get an error in the terminal:
ReferenceError: window is not defined
...
I have in package.json:
"scripts": {
"tws": "mocha-webpack -r ./test/test*.js",
"tw": "mocha-webpack --watch ./test/test*.js",
},
What is an issue and solution?