mocha-webpack icon indicating copy to clipboard operation
mocha-webpack copied to clipboard

SinonJS with mocha-webpack

Open mr-romeijn opened this issue 6 years ago • 1 comments

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

mr-romeijn avatar Jul 04 '18 08:07 mr-romeijn

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

serut avatar Jul 04 '18 14:07 serut