FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Attempts to deserialize payload from the coverage endpoint by xcambar · Pull Request #287 · ember-cli-code-coverage/ember-cli-code-coverage · GitHub

Attempts to deserialize payload from the coverage endpoint - #287

Open
xcambar wants to merge 1 commit into
ember-cli-code-coverage:masterfrom
xcambar:attempt_deserialize_json
Open

Attempts to deserialize payload from the coverage endpoint#287
xcambar wants to merge 1 commit into
ember-cli-code-coverage:masterfrom
xcambar:attempt_deserialize_json

Conversation

xcambar commented Sep 9, 2020

Copy link
Copy Markdown

fixes #286

As discussed in #286, this PR restores the initial behavior that attempts to deserialize a stringified JSON.

RobbieTheWagner changed the title Attemps to deserialize payload from the coverage endpoint Attempts to deserialize payload from the coverage endpoint Sep 15, 2020
return;
}

if (typeof data === 'string') {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I guess I still want to understand why data would be a string. 🤔

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@xcambar - Have you looked into this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Not thoroughly, but an initial look did not exclude that the behavior originates in istanbul-lib-coverage, unfortunately.

rwjblue commented Sep 21, 2020

Copy link
Copy Markdown
Collaborator

Needs a rebase now that #289 has landed...

xcambar force-pushed the attempt_deserialize_json branch from e4d16d9 to ddc8536 Compare September 22, 2020 13:46

xcambar commented Sep 22, 2020

Copy link
Copy Markdown
Author

rebased

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

middleware still returns a string, when JSON is expected

2 participants


Back | FazBrowse Home | New Git URL