Levin Keller
Levin Keller
Thank you for reporting the error. As far as I can tell, this could have any reason. Looks like you are using pnpm. Maybe it is a lockfile issue? I...
And I think you are new to testing with `jest` or `mocha`: You need to either put your prepare steps inside the `it` callback or in a `beforeEach` or `beforeAll`...
I tried to [reproduce](https://github.com/levino/mock-jwks/pull/254/files#diff-2ec66809bf2e41ca404b98e81a8ff02851e8b5352ee391107ddc466a4f30e628), but failed.
Could you not just adjust my PR? It would be so much simpler to discuss a failing test instead of reading prose ;)
Since above it says something about "fetch already patched" I would suspect that you have 2 versions of msw installed which both try to patch fetch. First thing I would...
In order to update my PR you need to: - fork this repo - clone your fork locally - checkout my branch `reproduce-253` - apply your changes and commit them...
I am still [unable to reproduce](https://github.com/levino/mock-jwks/pull/254/commits/a5d6434e4956a38edf64e817cefb714eb9c38b47).
Thank you for taking the time to provide your code example. I am able to reproduce. I simplified the test to reproduce a bit: https://github.com/levino/mock-jwks/blob/f8f772718cf05f6e903c6b4d7f0a3fe0373d01a8/src/startStop.test.ts#L5-L10 So the problem is that...
I decided to go with `i.`. For me this is now fixed. Please let me know if you disagree. Thank you again for highlighting this issue.
Thank you for coming back on this. You should not have to freeze the dependency. You should be able to just use v1 or `^1` and not suffer from these...