Open neverbot opened 9 months ago
Hey @neverbot; sorry for the very late reply. Could you resolve the conflicts here if you are still interested in landing this PR?
Hey @neverbot; sorry for the very late reply. Could you resolve the conflicts here if you are still interested in landing this PR?
Hi @koddsson, this PR was not 100% working, when I tried to update the sinon version, some of the error messages returned from sinon changed, and I have not enough knowledge about this to know if it was my fault or just some inner changes in sinon.
I've seen you've already used ESM modules, which was half the PR, kudos!
If somebody else (with more knowledge about sinon than me) wants to cherry-pick some commit from here, feel free to do it. Either case, we could close the PR.
im happy to sort it out unless you want to @koddsson
let me know
@43081j Sounds good :)
@neverbot Sorry again for the very late reply. We are really appreciative of you taking the time to work on this <3
I'm trying to update this package to be used with the new version of
chai
(from v4 to v5), andsinon
(from v9 to v17).chai
is now an ESM module, so this package must be migrated to ESM too. This would solve #160.Done:
require
toimport
/export
.Need reviewing:
sinon-chai
used the UMD pattern to allow using it with AMD, CommonJS and browser. With ESM modules this is (i think) no longer necessary, just an ESM module with export... but I'm a backend programmer, so I need somebody to test this.sinon
has been updated from v9 to v17... some things have changed, and the information messages shown to the user are different. I've changed some of the "expected foo but bar" messages to better match the current sinon styles... and the existing tests to fit those new messages. Needs review.Need to fix: There are 5 tests which i'm not able to fix:
I don't know why
sinon
tries to serialize some objects instead of returning just a string with the right message. Don't know enough about the inner workings ofsinon
to understand what is happening. Somebody wants to help?