Changelog for Sinon: https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md
The following is the error that appears when running the built-in tests after bumping Sinon in the dev dependency list to v8.0.2:
:/mnt/c/temp/sinon-mongoose$ npm test
> sinon-mongoose@2.3.0 test /mnt/c/temp/sinon-mongoose
> gulp
[13:46:14] Using gulpfile /mnt/c/temp/sinon-mongoose/gulpfile.js
[13:46:14] Starting 'default'...
[13:46:14] Starting 'static'...
[13:46:25] Finished 'static' after 10 s
[13:46:25] Starting 'test'...
[13:46:25] Starting 'pre-test'...
[13:46:25] Finished 'pre-test' after 112 ms
[13:46:25] Starting 'testTask'...
/mnt/c/temp/sinon-mongoose/lib/index.js:98
sinon.sandbox.mock = sandboxMock
^
TypeError: Cannot set property 'mock' of undefined
at Object.<anonymous> (/mnt/c/temp/sinon-mongoose/lib/index.js:98:20)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/mnt/c/temp/sinon-mongoose/test/index.js:6:1)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at /mnt/c/temp/sinon-mongoose/node_modules/mocha/lib/mocha.js:250:27
at Array.forEach (<anonymous>)
at Mocha.loadFiles (/mnt/c/temp/sinon-mongoose/node_modules/mocha/lib/mocha.js:247:14)
at Mocha.run (/mnt/c/temp/sinon-mongoose/node_modules/mocha/lib/mocha.js:576:10)
at Object.<anonymous> (/mnt/c/temp/sinon-mongoose/node_modules/mocha/bin/_mocha:637:18)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11
-----------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
-----------|----------|----------|----------|----------|----------------|
lib/ | 11.54 | 0 | 0 | 11.54 | |
index.js | 11.54 | 0 | 0 | 11.54 |... 91,92,95,98 |
-----------|----------|----------|----------|----------|----------------|
All files | 11.54 | 0 | 0 | 11.54 | |
-----------|----------|----------|----------|----------|----------------|
=============================== Coverage summary ===============================
Statements : 11.54% ( 6/52 )
Branches : 0% ( 0/19 )
Functions : 0% ( 0/9 )
Lines : 11.54% ( 6/52 )
================================================================================
[13:46:27] 'testTask' errored after 1.93 s
[13:46:27] Error in plugin "gulp-mocha"
Message:
There were test failures
[13:46:27] 'test' errored after 2.05 s
[13:46:27] 'default' errored after 12 s
npm ERR! Test failed. See above for more details.
Changelog for Sinon: https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md
The following is the error that appears when running the built-in tests after bumping Sinon in the dev dependency list to v8.0.2: