【发布时间】:2014-05-16 21:29:56
【问题描述】:
我想使用 Chutzpah 在 Visual Studio 2013 中运行 JavaScript 单元测试。 只要我不引用 angular.js,测试就会运行。 使用 angular.js,这些测试将无法运行,VS 输出给我以下消息:
Error: Error: Instrumentation error, you cannot redefine the 'window' variable in file:///e:/.../scripts/angular/angular.js:1529
in file:///C:/USERS/.../APPDATA/LOCAL/MICROSOFT/VISUALSTUDIO/12.0/EXTENSIONS/MWY50QF4.VGS/TestFiles/Coverage/blanket_jasmine_v2.js.**
有人知道这个问题吗?
【问题讨论】:
标签: angularjs visual-studio-2013 jasmine chutzpah