zinserjan / mocha-webpack

mocha test runner with integrated webpack precompiler
http://zinserjan.github.io/mocha-webpack/
MIT License
486 stars 75 forks source link

SinonJS with mocha-webpack #280

Open mr-romeijn opened 6 years ago

mr-romeijn commented 6 years ago

Hello,

Is it possible to use sinonJS with this dependency? When using the spy method i get the following transpiling error:

ReferenceError: self is not defined

I inspected the source and it seems that it uses it's own webpack conf to transpile the tests. However it does not seem to work with Sinon. I tried sinon version 5.0.1 and 6.0.1

serut commented 6 years ago

Yes we use it without any trouble. Our code is not fresh but is here : https://github.com/RegardsOss/regards-frontend/