WDIO TypeScript service
Attention: The best practice is known to use a special option of your testing framework. So, this service is an alternative to do something like:
{
framework: 'mocha'
mochaOpts: {
'compilers': ['ts-node/register']
}
}
npm install wdio-typescript-service --save
Make sure you already have the following dependencies:
{
"typescript": "^2.1.5",
}
{
services: [
'typescript'
]
};
{
typescriptOptions: { }
}
A full list of options see here.
import Page from './page';
interface Test {};
describe('Suite', () => {
let page: Test = new Page;
})