新的 Angular 项目不包含 e2e 文件夹 [英] New Angular Project does not include e2e folder

查看:33
本文介绍了新的 Angular 项目不包含 e2e 文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统上已经安装了 Angular,并且在大约 7-8 个月前使用过它.

I had Angular already on my system and had briefly worked with it around 7-8 months ago.

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

A short while ago, I created a new Angular project

ng new testproject

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

The strange part is that the e2e folder was not created!

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

I tried uninstalling the CLI, clearing the cache and reinstalling Angular.

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

但这并没有奏效.

这是ng --version的输出:

这是文件夹的样子:

推荐答案

量角器的未来

Angular 团队一直在与社区合作,以确定 Protractor 的未来.我们目前正在审查 RFC 中共享的反馈.我们仍在为 Protractor 寻找最好的未来.我们选择不将其包含在新项目中,而是在 Angular CLI 中提供流行的 3rd 方解决方案选项.我们目前正在与 Cypress、WebdriverIO 和 TestCafe 合作,以帮助用户采用替代解决方案.随着情况的发展,我们将提供更多信息.

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

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

这篇关于新的 Angular 项目不包含 e2e 文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆