Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The e2e target is not created #130

Open
chrisvelevitch opened this issue Mar 22, 2022 · 2 comments
Open

The e2e target is not created #130

chrisvelevitch opened this issue Mar 22, 2022 · 2 comments

Comments

@chrisvelevitch
Copy link

chrisvelevitch commented Mar 22, 2022

I created a new empty Angular v13 project and added the package:-

ng add @wdio/schematics --removeProtractor

with the following options:-

✔ Found compatible package version: @wdio/[email protected].
✔ Package information loaded.

The package @wdio/[email protected] will be installed and executed.
Would you like to proceed? Yes
✔ Package successfully installed.

=========================
WDIO Configuration Helper
=========================

? Where is your automation backend located? On my local machine
? Which framework do you want to use? jasmine
? Do you want to use a compiler? TypeScript (https://www.typescriptlang.org/)
? Where are your test specs located? ./test/specs/**/*.ts
? Do you want WebdriverIO to autogenerate some test files? Yes
? Do you want to use page objects (https://martinfowler.com/bliki/PageObject.html)? No
? Which reporter do you want to use? spec
? Do you want to add a plugin to your test setup?
? Do you want to add a service to your test setup? chromedriver
? What is the base url? http://localhost
? Do you want me to run `npm install` Yes

Installing wdio packages:
- @wdio/local-runner
- @wdio/jasmine-framework
- @wdio/spec-reporter
- wdio-chromedriver-service
- ts-node
- typescript
- chromedriver

When I run ng e2e I get:-

Cannot find "e2e" target for the specified project.

I inspected the angular.json file and the e2e target is missing.

Shouldn't ng add @wdio/schematics --removeProtractor update the angular.json file to include the e2e target?

What should the e2e target look like so I can add it myself?

@christian-bromann
Copy link
Member

This could be related to the fact that this repository is using @angular-devkit/* v12 which might not be compatible with v13 of Angular. I've been struggling updating this dependency due to type issues. Are you interested helping out?

@chrisvelevitch
Copy link
Author

I checked and the project is using v13.3.0 of all the Angular packages and includes @angular-devkit/build-angular installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants