feat(@open-wc/testing-karma-bs): new type definition (#43216)

- type definition
- tests

https://github.com/open-wc/open-wc/tree/master/packages/testing-karma-bs

Thanks!
This commit is contained in:
Piotr Błażejewicz (Peter Blazejewicz) 2020-03-20 16:56:30 +01:00 committed by GitHub
parent 6a4b60bef8
commit 12712d99e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// Type definitions for @open-wc/testing-karma-bs 1.3
// Project: https://github.com/open-wc/open-wc/tree/master/packages/testing-karma-bs
// Definitions by: Peter Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.2
/// <reference types="karma-browserstack-launcher" />
import karma = require('karma');
declare function testingKarma(): karma.ConfigOptions;
export = testingKarma;

View File

@ -0,0 +1,24 @@
/// <reference types="node" />
import karma = require('karma');
import bsSettings = require('@open-wc/testing-karma-bs');
import merge = require('lodash/merge');
module.exports = (config: karma.Config) => {
config.set(
merge(bsSettings(), {
browserStack: {
accessKey: process.env.BROWSERSTACK_KEY,
apiClientEndpoint: 'https://api.browserstack.com',
project: 'open-wc',
username: process.env.BROWSERSTACK_USERNAME,
},
browsers: [
'bs_win10_chrome_latest',
'bs_win10_firefox_latest',
'bs_win10_edge_latest',
'bs_osxmojave_safari_latest',
'bs_win10_ie_11',
],
}),
);
};

View File

@ -0,0 +1,28 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"@open-wc/testing-karma-bs": [
"open-wc__testing-karma-bs"
]
}
},
"files": [
"index.d.ts",
"open-wc__testing-karma-bs-tests.ts"
]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }