[英]Error when trying to run any Cypress test
我已經根據 cypress 文檔安裝了 Cypress。 打開 Cypress 並選擇要運行的測試后,我立即收到以下錯誤:
**Title:** Error running plugin
消息:插件引發了以下錯誤。 由於插件崩潰,我們停止運行您的測試。 請檢查您的插件文件( C:\Users\metin\Desktop\Programming\School\Typescript\From JS to TS\cypress\plugins\index.js
)
堆棧跟蹤:
Error: The following error was thrown by a plugin. We stopped running your tests because a plugin crashed. Please check your plugins file (`C:\Users\metin\Desktop\Programming\School\Typescript\From JS to TS\cypress\plugins\index.js`)
at Object.get (C:\Users\metin\AppData\Local\Cypress\Cache\9.1.0\Cypress\resources\app\packages\server\lib\errors.js:1043:15)
at EventEmitter.handleError (C:\Users\metin\AppData\Local\Cypress\Cache\9.1.0\Cypress\resources\app\packages\server\lib\plugins\index.js:189:20)
at EventEmitter.emit (node:events:394:28)
at ChildProcess.<anonymous> (C:\Users\metin\AppData\Local\Cypress\Cache\9.1.0\Cypress\resources\app\packages\server\lib\plugins\util.js:19:22)
at ChildProcess.emit (node:events:394:28)
at emit (node:internal/child_process:920:12)
at processTicksAndRejections (node:internal/process/task_queues:84:21)
我已經在谷歌上搜索了幾個小時,我正在尋求有關如何解決此問題的幫助!
我遇到了同樣的問題,這個問題與我的 bitbucket.yml.file 相關,我在工作中更改了:max-time:(set time for running your tests),一切正常
如果您使用的是 Cucumber,請查看您的步驟文件以搜索拼寫錯誤的關鍵字或小寫/大寫拼寫錯誤,例如wHEN
或thEn
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.