0.0.3 • Published 7 years ago

wdio-typescript-service v0.0.3

Weekly downloads
58
License
MIT
Repository
github
Last release
7 years ago

wdio-typescript-service

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']
	}
}

Installation

npm install wdio-typescript-service --save

package.json

Make sure you already have the following dependencies:

{
	"typescript": "^2.1.5",
}

Usage

wdio.config.js

{
	services: [
		'typescript'
	]
};

Options

{
	typescriptOptions: { }
}

A full list of options see here.

Example

import Page from './page';

interface Test {};

describe('Suite', () => {
	let page: Test = new Page;
})