从 11.0.3 Angular/Core 版本开始,E2E 测试不适用于具有默认配置的项目。
我打开了一个问题https://github.com/angular/angular/issues/40221但它似乎不是回归(?)
https://github.com/BrunoBeraudPW/issue-angular-11.0.3
这是一个默认项目 Angular 11.0.3,我已将所有包更新到最新版本
我已经“手动”更新了所有软件包,因为“ng new”cmd 正在创建一个 Angular 10 应用程序,所以我想问题可能是由于其他软件包造成的。
但即使我刚刚更新了角度包,错误仍然存在
使用 fakeAsync 时:
Failed: zone-testing.js is needed for the async() test helper but could not be found.
Please make sure that your environment includes zone.js/dist/zone-testing.js
Run Code Online (Sandbox Code Playgroud)
selenium-webdriver 库中的几个错误(承诺)
C:\dev-phoenix\1-Photoweb-Forks\test\node_modules\selenium-webdriver\lib\promise.js:3067:27
this.pending_ = {task: task, q: this.subQ_};
task.promise.queue_ = this;
result = this.subQ_.execute_(task.execute);
~
this.subQ_.start();
} catch (ex) {
Run Code Online (Sandbox Code Playgroud)
Internal/modules/cjs/loader.js 中的几个错误
internal/modules/cjs/loader.js:955:30
jasmine-spec-reporter: unable to open 'internal/modules/cjs/loader.js'
Error: ENOENT: no such file …Run Code Online (Sandbox Code Playgroud)