jpolley / webdriverio_v5_typescript Goto Github PK
View Code? Open in Web Editor NEWThis is a boilerplate project that uses version 5 of WebdriverIO and TypeScript.
This is a boilerplate project that uses version 5 of WebdriverIO and TypeScript.
What subject says.
It seems that there is an issue with the TypeScript setup here. See also webdriverio/webdriverio#5079. The patch I had to apply to get spec filtering running was:
diff --git a/package.json b/package.json
index e151b62..cad6fcd 100644
--- a/package.json
+++ b/package.json
@@ -25,7 +25,7 @@
"allure-commandline": "^2.13.0",
"chai": "^4.2.0",
"mocha": "^5.2.0",
- "ts-node": "^7.0.1",
+ "ts-node": "^8.6.2",
"tsconfig-paths": "^3.9.0",
"tslint": "^5.20.1",
"typescript": "^3.8.2",
diff --git a/wdio.conf.js b/wdio.conf.js
index d164713..97331c5 100644
--- a/wdio.conf.js
+++ b/wdio.conf.js
@@ -117,12 +117,13 @@ exports.config = {
// Options to be passed to Mocha.
// See the full list at http://mochajs.org/
mochaOpts: {
+ require: 'ts-node/register',
compilers: [
'tsconfig-paths/register'
],
- ui: 'bdd',
- timeout: timeout,
- grep: "Login"
+ ui: 'bdd',
+ timeout: timeout,
+ grep: "Login"
},
featureFlags: {
@@ -159,9 +160,8 @@ exports.config = {
* @param {Array.<Object>} capabilities list of capabilities details
* @param {Array.<String>} specs List of spec file paths that are to be run
*/
- before: function (capabilities, specs) {
- require('ts-node').register({ files: true });
- },
+ // before: function (capabilities, specs) {
+ // },
/**
* Runs before a WebdriverIO command gets executed.
* @param {String} commandName hook command name
I will update our docs accordingly.
After looking into the code, some of my questions are
1-->where is the output folder mentioned in tsconfig.json after conversion to js.
2-->do we not required tsc command before executing.
3-->are we going to run .ts files not .js files?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.