ajax - Ember-qunit 单元测试失败,全局错误 Ajax 中止
问题描述
有没有人遇到过这个问题?我正在本地运行 ember-qunit 的单元测试,得到这个全局错误,Ajax 被中止。谢谢!
ok 1 Chrome 92.0 - [1 ms] - ESLint | app: services/something.js
ok 2 Chrome 92.0 - [0 ms] - ESLint | tests: unit/services/something-test.js
not ok 3 Chrome 92.0 - [undefined ms] - Global error: Uncaught Error: The ajax operation was aborted at http://localhost:7357/assets/vendor.js, line 36784
While executing test: Unit | Service | something: should correctly concat foo
---
browser log: |
testContext: [object Object]
ERROR: Uncaught Error: The ajax operation was aborted at http://localhost:7357/assets/vendor.js, line 36784
...
not ok 4 Chrome - [undefined ms] - error
---
message: >
Error: Browser timeout exceeded: 10s
Error while executing test: Unit | Service | something: should correctly concat foo
Stderr:
DevTools listening on ws://127.0.0.1:9222/devtools/browser/53946c78-c3da-4f52-9744-bd71040066fc
browser log: |
[object Object]
[object Object]
[object Object]
...
1..4
# tests 4
# pass 2
# skip 0
# fail 2
Testem finished with non-zero exit code. Tests failed.
解决方案
推荐阅读
- node.js - Angular中的swiperjs安装问题
- javascript - JS 将文件上传到 HTML 文件元素,保留常规点击的效果
- javascript - 忽略 API 调用 nodeJS 返回的错误
- html - 如何使图像具有响应性?
- python - Python读取xml
- codenameone - CN1如何选择IMEI?
- http - 从 ASP.Net Core 控制器下载带有 POST 的 PDF 时出现 ERR_CONNECTION_RESET
- c# - Linq 按日期范围分组
- typescript - lambdas 允许的额外属性,但函数不允许
- regex - 带有 unicode 字符的 Perl 正则表达式替换不起作用,我错过了什么?