I have to replace this line to "var sinonPath = path.dirname(require.resolve('sinon')) + '/../pkg';" then my test start passing.