hellof2e / quark-design

Browser-native component library, framework-agnostic, base on web components.(移动端 UI 组件库,无框架,即插即用。)

Home Page:https://quark-ecosystem.github.io/quarkd-docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

执行单元测试报错,FetchError: request to http://localhost:9876/context.html?bypass-es-dev-server failed, reason: connect ECONNREFUSED ::1:9876

17045207 opened this issue · comments

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

环境:Node 18.12.0
步骤:拉取主线代码后项目根目录执行yarn init 后 执行 test命令
结果:单元测试未执行成功,报错信息如下
FetchError: request to http://localhost:9876/context.html?bypass-es-dev-server failed, reason: connect ECONNREFUSED ::1:9876 at ClientRequest.<anonymous> (E:\workspace\UIFrameResearch\quard-design2\quark-design\packages\quarkd\node_modules\node-fetch\lib\index.js:1491:11) at ClientRequest.emit (node:events:513:28) at Socket.socketErrorListener (node:_http_client:494:9) at Socket.emit (node:events:513:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)