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

ng e2e + WebdriverIO: wdio.conf.ts: Unexpected token 'export' #24556

Closed
JayDouglass opened this issue Jan 15, 2023 · 3 comments
Closed

ng e2e + WebdriverIO: wdio.conf.ts: Unexpected token 'export' #24556

JayDouglass opened this issue Jan 15, 2023 · 3 comments

Comments

@JayDouglass
Copy link

JayDouglass commented Jan 15, 2023

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

When creating a new angular project and selecting WebdriverIO as the e2e testing framework, the resulting wdio configuration is invalid and errors out when attempting to run the example test.

Steps

  1. ng new my-angular-wdio-app
  • Accept all defaults
  1. ng e2e
  • Choose WebdriverIO
  • Accept all defaults

Output

Configuration file was created successfully!
To run your tests, execute:
$ npx wdio run test/wdio.conf.ts

ENOENT: no such file or directory, open '/Users/jdouglass/Repos/my-angular-wdio-app/wdio.conf.ts'
  1. npx wdio run test/wdio.conf.ts
npx wdio run test/wdio.conf.ts
2023-01-15T00:58:08.455Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: /Users/jdouglass/Repos/my-angular-wdio-app/test/wdio.conf.ts: Unexpected token 'export'

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

ERROR @wdio/config:ConfigParser: Failed loading configuration file: /Users/jdouglass/Repos/my-angular-wdio-app/test/wdio.conf.ts: Unexpected token 'export'

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 15.1.1
Node: 19.4.0 (Unsupported)
Package Manager: npm 9.2.0
OS: darwin arm64

Angular: 15.1.0
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1501.1
@angular-devkit/build-angular   15.1.1
@angular-devkit/core            15.1.1
@angular-devkit/schematics      15.1.1
@angular/cli                    15.1.1
@schematics/angular             15.1.1
rxjs                            7.8.0
typescript                      4.9.4

Anything else?

There may be changes in WebdriverIO that need to be considered:

See also
webdriverio/create-wdio#14
webdriverio/create-wdio#306

@JoostK JoostK transferred this issue from angular/angular Jan 15, 2023
@JoostK
Copy link
Member

JoostK commented Jan 15, 2023

The WebdriverIO schematic is maintained externally in @wdio/schematics, where this has been reported in webdriverio/webdriverio-schematics#266.

@alan-agius4
Copy link
Collaborator

Closing as per above.

The WebdriverIO schematic is not maintained by the Angular team.

@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2023
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants