Open kenzoviski opened 6 months ago
Sadly this plugin broke shortly after was released. Fixing it is far from trivial, and I'm not optimistic about how long it would be before it broke again
Ok, no problem, I use the CLI to execute my tests.
Sadly this plugin broke shortly after was released. Fixing it is far from trivial, and I'm not optimistic about how long it would be before it broke again
Hello @marcellourbani Which is the last version of wdio where this was still working? I'd like to figure out how it was supposed to work and maybe even try to get it working again, but it would be a lot easier to start from a working setup ;-)
don't remember. Was probably the bleeding edge when this was initialy released. I tried to fix it a few months ago, the main issue is that it's designed to be run in ts-node and doesn't behave when imported as a library, so I should create my own CLI and embed it... Looked like too much work
Might have a better look when I find the time, but don't hold your breath
After installing latest WebDriver.IO using Typescript language on VS Code, tests run perfectly using command line. Although, after installing this plugin, every time the project is loaded it gives the following error:
failed load WDIO configuration:spawnSync npx ENOENT
On WebDriver.IO test runner settings I have:
**/wdio.conf.[jt]s
Here are my config files:
import type { Options } from '@wdio/types' export const config: Options.Testrunner = { // // ==================== // Runner Configuration // ==================== // WebdriverIO supports running e2e tests as well as unit and component tests. runner: 'local', autoCompileOpts: { autoCompile: true, tsNodeOpts: { project: './tsconfig.json', transpileOnly: true } },
}
{ "compilerOptions": { "moduleResolution": "node", "module": "commonjs", "target": "es2022", "lib": [ "es2022", "dom" ], "types": [ "node", "@wdio/globals/types", "expect-webdriverio", "@wdio/mocha-framework" ], "skipLibCheck": true, "noEmit": true, "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, "include": [ "test", "wdio.conf.ts" ] }
{ "name": "webdriverio", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "wdio": "wdio run ./wdio.conf.ts" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@wdio/cli": "^8.32.0", "@wdio/local-runner": "^8.32.0", "@wdio/mocha-framework": "^8.31.1", "@wdio/spec-reporter": "^8.31.1", "ts-node": "^10.9.2", "typescript": "^5.3.3" } }