-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Cannot start wdio tests #9
Comments
I have the same problem. Seems to me, it's caused by the command using the The sandbox example project doesn't have any problems, because its tsconfig defines I am not sure if fixing this is something the schematics should do, or if it's the responsibility of the project that implements them, curious about opinions on this. |
@jordydejong @HymanZHAN can you provide some WebdriverIO logs? |
I'm facing the same issue. The exact error I'm getting is
It seems like the configured module in tsconfig.json (es2020) isn't compatible. If I use with "commonjs", webdriver.io works but not the ng test target. Also, I don't want to change the whole project because of the testing framework being used. Additionally, It seems that using individual ts config files for angular targets is not possible at that stage. I'm using angular @christian-bromann please tell me what logs are you looking for |
This error above is all necessary to know. Am I assuming right, that your project is using pure ESM? This could be problematic because WebdriverIO doesn't support this yet. It is on the roadmap. |
Indeed, this
seems to be the actual default configuration when creating new angular projects |
Recommend to have a separate tsconfig file that compiles to cjs. You can configure the location of that tsconfig file in |
The main issue here is that Using So I was thinking about exposing a new option |
I added the schematics and tried run the e2e tests. However, there was an error where it said error parsing the config file.
Installation Output
Test output
`wdio.conf.ts`
I am using Node 14.17.5 and Angular 12.2.8. Any help is appreciated!
The text was updated successfully, but these errors were encountered: