新建 Angular 项目不包含 e2e 文件夹

New Angular Project does not include e2e folder

我的系统上已经有 Angular,大约 7-8 个月前曾短暂使用过它。

不久前,我创建了一个新的Angular项目

ng new testproject

奇怪的是没有创建e2e文件夹!

我尝试卸载 CLI,清除缓存并重新安装 Angular。

npm uninstall -g angular-cli @angular/cli
npm cache clean --force
npm install -g @angular/cli@latest

但这并没有奏效。

这是ng --version的输出:

文件夹是这样的:

The Future of Protractor

The Angular team has been working with the community to determine the future of Protractor. We’re currently reviewing the feedback shared in the RFC. We’re still figuring out the best future for Protractor. We’ve opted to not include it in new projects and, instead, provide options with popular 3rd party solutions in the Angular CLI. We are currently working with Cypress, WebdriverIO, and TestCafe to help users adopt the alternative solutions. More information to come as this develops.

blog.angular.io/angular-v12-is-now-available-32ed51fbfd49