Skip to content
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

getJson 返回结果错误 #55

Open
liunnn1994 opened this issue Aug 10, 2023 · 0 comments
Open

getJson 返回结果错误 #55

liunnn1994 opened this issue Aug 10, 2023 · 0 comments
Labels
bug Something isn't working inactive

Comments

@liunnn1994
Copy link
Member

描述该错误

getJson 并未成功解析返回值。使用原生 fetch 没问题。

重现

运行测试用例:tests/e2e/lib/getJson.spec.ts

预期行为

应返回给定的 json 对象 :

  { foo: "bar" }

截图

错误的情况:

getJson.spec.ts.mp4

使用原生的 fetch 结果是正确的:

getJson.spec.ts.mp4

环境信息

  • Device: notebook
  • OS: windows 11
  • Browser: Electron
  • Version: 106 (headless)
  • Node Version: v18.16.1
@liunnn1994 liunnn1994 added the bug Something isn't working label Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working inactive
Projects
Status: No status
Development

No branches or pull requests

1 participant