Under Angular 14.1, I ran ng e2e and went through the prompts to install the schematics for WebdriverIO. But at the end, I had an error:
Configuration file was created successfully!
To run your tests, execute:
$ npx wdio run test/wdio.conf.ts
ENOENT: no such file or directory, open 'C:\DevPOC\Angular14App\wdio.conf.ts'
This was on an Angular 14 app without any real implementation (basically, just what the CLI creates for a new app). I created another new app and tried again, with the same result.
When I actually try to run the app using npx wdio run test/wdio.conf.ts, I get the following:
C:\DevPOC\Angular14App\test\wdio.conf.ts:1
export const config = {
^^^^^^
SyntaxError: Unexpected token 'export'
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1033:15)
at Module._compile (node:internal/modules/cjs/loader:1069:27)
at Module.m._compile (C:\DevPOC\Angular14App\node_modules\ts-node\src\index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Object.require.extensions.<computed> [as .ts] (C:\DevPOC\Angular14App\node_modules\ts-node\src\index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
Steps to reproduce:
- Use ng new to create a new app with Angular 14.1.
- Run ng e2e to add the WebdriverIO schematics.
- Check output for error message at the end.
Under Angular 14.1, I ran ng e2e and went through the prompts to install the schematics for WebdriverIO. But at the end, I had an error:
This was on an Angular 14 app without any real implementation (basically, just what the CLI creates for a new app). I created another new app and tried again, with the same result.
When I actually try to run the app using npx wdio run test/wdio.conf.ts, I get the following:
Steps to reproduce: