【问题标题】:Undefined is not a function Intern JsUndefined 不是函数 Intern Js
【发布时间】:2015-08-09 17:51:48
【问题描述】:

嗨朋友们,我刚刚设置了 Intern Js,当我尝试运行功能测试时,它给了我下面提到的错误:

Listening on 0.0.0.0:9000
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
ReferenceError: __cov_VQFOzwnac8hdvD0fpGS2FQ is not defined
  at Object.<anonymous>  </Users/rmiglani/Downloads/intern-tutorial-master/internjs/node_modules/intern/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-node.js:5:0>
  at Module._compile  <module.js:460:26>
  at Object.Module._extensions.(anonymous function) [as .js]  <internjs/node_modules/intern/node_modules/istanbul/lib/hook.js:107:24>
  at Module.load  <module.js:355:32>
  at Function.Module._load  <module.js:310:12>
  at Module.require  <module.js:365:17>
  at require  <module.js:384:17>
  at Object.load  <internjs/node_modules/intern/node_modules/dojo/node.ts:56:11>
  at injectPlugin  <internjs/node_modules/intern/node_modules/dojo/loader.ts:711:6>
  at injectModule  <internjs/node_modules/intern/node_modules/dojo/loader.ts:733:3>

请帮我解决这个问题,请让我知道我可能在哪里犯了错误

【问题讨论】:

    标签: intern


    【解决方案1】:

    实习生正试图将伊斯坦布尔的覆盖率报告映射回源代码,但未能如愿。如果没有看到您的实习生配置文件,很难诊断出您的确切问题,但我猜您缺少excludeInstrumentation 选项。如果您的配置中实际上缺少该选项,我建议使用example config 中提供的值。

    【讨论】:

      猜你喜欢
      • 2014-11-20
      • 2017-09-29
      • 2020-10-12
      • 2015-10-29
      • 2015-06-05
      • 2019-10-16
      • 2015-06-12
      • 2015-10-16
      • 2013-05-17
      相关资源
      最近更新 更多