sinon icon indicating copy to clipboard operation
sinon copied to clipboard

Improve migration guide re v20

Open mroderick opened this issue 9 months ago • 5 comments

In v20, we removed fakeXHR and fakeServer.

It's time. We might want to add some notes to the migration-guide.md about alternatives (msw, etc).

Originally posted by @fatso83 in https://github.com/sinonjs/sinon/pull/2642#pullrequestreview-2698737989

mroderick avatar Mar 24 '25 18:03 mroderick

Today I found that my tests don't run anymore after upgrading to 20.x because of fake server not being available. I'm don't have too much experience on JavaScript, so I'd appreciate any guidance on what are good alternatives here so I can re-write my tests.

humitos avatar Apr 03 '25 15:04 humitos

@humitos the library (nise) is still available. Working just as well. Just not bundled. Just import it directly. Same API.

fatso83 avatar Apr 05 '25 12:04 fatso83

@fatso83 thanks a lot for your comment. I was able to use nise with very few modifications (just variable names changes) 👍🏼

humitos avatar Apr 07 '25 15:04 humitos

Is anyone going to update the migration guide docs for v20, cause it is still v19, otherwise I can help docs/guides/migration-guide.md

mohamedmansour avatar Apr 28 '25 14:04 mohamedmansour

@mohamedmansour Please do! I do not have much time (or incentive) to maintain and work on JS related projects at the moment, as I have almost exclusively been working with Ada, Kotlin/JVM and Python in the last year.

fatso83 avatar Apr 30 '25 10:04 fatso83