【问题标题】:Trying to run testcafe with jenkins manually but getting error尝试使用 jenkins 手动运行 testcafe 但出现错误
【发布时间】:2021-05-26 05:49:24
【问题描述】:

你好我关注了这篇文章中的所有内容https://devexpress.github.io/testcafe/documentation/guides/continuous-integration/jenkins.html

当我运行时它显示此错误:

ERROR ReferenceError: globalThis is not defined 在对象。 (E:\jenkins\builds\workspace\Automation\node_modules\queue-microtask\index.js:5:25) 在 Module._compile (internal/modules/cjs/loader.js:707:30) 在 Module._compile (E:\jenkins\builds\workspace\Automation\node_modules\source-map-support\source-map-support.js:547:25) 在 Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10) 在 Module.load (internal/modules/cjs/loader.js:605:32) 在 tryModuleLoad (internal/modules/cjs/loader.js:544:12) 在 Function.Module._load (internal/modules/cjs/loader.js:536:3) 在 Module.require (internal/modules/cjs/loader.js:643:17) 在需要(内部/模块/cjs/helpers.js:22:18) 在对象。 (E:\jenkins\builds\workspace\Automation\node_modules\run-parallel\index.js:4:24) 在 Module._compile (internal/modules/cjs/loader.js:707:30) 在 Module._compile (E:\jenkins\builds\workspace\Automation\node_modules\source-map-support\source-map-support.js:547:25) 在 Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10) 在 Module.load (internal/modules/cjs/loader.js:605:32) 在 tryModuleLoad (internal/modules/cjs/loader.js:544:12) 在 Function.Module._load (internal/modules/cjs/loader.js:536:3) 在 Module.require (internal/modules/cjs/loader.js:643:17) 在需要(内部/模块/cjs/helpers.js:22:18) 在对象处。

我做错了什么?如何解决此 GlobalThis 错误?

【问题讨论】:

    标签: jenkins testing automated-tests e2e-testing testcafe


    【解决方案1】:

    基于类似的问题,我假设您需要更新您的 Node.js 版本:

    https://github.com/datproject/dat-store/issues/49

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-02
      • 2022-06-11
      • 2023-03-14
      • 1970-01-01
      • 2011-12-03
      • 2013-01-24
      • 2012-02-05
      • 2023-04-03
      相关资源
      最近更新 更多