mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
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:
parent
6a4b60bef8
commit
12712d99e6
12
types/open-wc__testing-karma-bs/index.d.ts
vendored
Normal file
12
types/open-wc__testing-karma-bs/index.d.ts
vendored
Normal 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;
|
||||
@ -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',
|
||||
],
|
||||
}),
|
||||
);
|
||||
};
|
||||
28
types/open-wc__testing-karma-bs/tsconfig.json
Normal file
28
types/open-wc__testing-karma-bs/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/open-wc__testing-karma-bs/tslint.json
Normal file
1
types/open-wc__testing-karma-bs/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user