-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: migrate to msw@2 #38
Conversation
kettanaito
commented
May 20, 2024
- Closes Migrate to MSW 2.0 #35
The core has been migrated but tests need rewriting. |
Hah, just started working on it today :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I wanted to add delay
config option to allow adding a random amount of extra delay when the har archive request has the time
-property populated
@weyert, good call. I think I've already added that with these changes: source/src/fromTraffic/fromTraffic.ts Lines 55 to 57 in fea871c
|
test/traffic/fromTraffic.test.ts
Outdated
@@ -80,7 +80,7 @@ describe('fromTraffic', () => { | |||
) | |||
|
|||
expect(handlers).toHaveLength(1) | |||
expect(handlers[0].info.header).toEqual('GET https://api.stripe.com') | |||
expect(handlers[0].info.header).toEqual('get https://api.stripe.com') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've fixed this in inspectHandlers
though. Once we introduce it here, we can write proper assertions on the generated handlers.
@weyert, I've removed |
All
Now, to the |
The tests are passing and the migration is complete. I will go ahead and merge this. |
Released: v0.1.0 🎉This has been released in v0.1.0! Make sure to always update to the latest version ( Predictable release automation by @ossjs/release. |