-
Notifications
You must be signed in to change notification settings - Fork 352
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
feat: Convert recordings to be HAR compliant #45
Conversation
package.json
Outdated
@@ -14,9 +14,9 @@ | |||
], | |||
"scripts": { | |||
"commitmsg": "commitlint -E GIT_PARAMS", | |||
"build": "lerna run build --ignore=@pollyjs/ember --parallel", |
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.
Lets revert and fix the build issues
get absoluteUrl() { | ||
const { url } = this; | ||
|
||
if (!isAbsoluteUrl(url)) { |
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.
Verify with jest
@@ -40,9 +40,15 @@ export default class XHRAdapter extends Adapter { | |||
} | |||
|
|||
async onReplay(pollyRequest, recordingEntry) { | |||
const { status, headers, body } = recordingEntry.response; | |||
const { status, headers, content } = recordingEntry.response; |
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.
Consider consolidating between the two adapters
} | ||
|
||
addEntries(entries = []) { | ||
this.entries = uniqWith( |
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.
Add tests here
No description provided.