mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
feat(karma-brief-reporter): new type definition for v0.2 (#43053)
- definition file - tests https://github.com/prantlf/karma-brief-reporter#readme https://github.com/prantlf/karma-brief-reporter#options Thanks!
This commit is contained in:
parent
ffa65b1173
commit
4fce93531e
54
types/karma-brief-reporter/index.d.ts
vendored
Normal file
54
types/karma-brief-reporter/index.d.ts
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
// Type definitions for karma-brief-reporter 0.2
|
||||
// Project: https://github.com/prantlf/karma-brief-reporter
|
||||
// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) <https://github.com/peterblazejewicz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.2
|
||||
|
||||
import 'karma';
|
||||
|
||||
declare module 'karma' {
|
||||
interface ConfigOptions {
|
||||
/**
|
||||
* Reports test progress statistics and lists failures at the end of a Karma test run.
|
||||
* {@link https://github.com/prantlf/karma-brief-reporter#options}
|
||||
*/
|
||||
briefReporter?: BriefReporterOptions;
|
||||
}
|
||||
|
||||
interface BriefReporterOptions {
|
||||
/**
|
||||
* Suppress the error report at the end of the test run
|
||||
* @default false
|
||||
*/
|
||||
suppressErrorReport?: boolean;
|
||||
/**
|
||||
* Print the test failures immediately instead of at the end
|
||||
* @default false
|
||||
*/
|
||||
earlyErrorReport?: boolean;
|
||||
/**
|
||||
* Suppress the red background on errors in the error
|
||||
* report at the end of the test run.
|
||||
* @default false
|
||||
*/
|
||||
suppressErrorHighlighting?: boolean;
|
||||
/**
|
||||
* Omits stack frames from external dependencies like qunit,
|
||||
* jasmine or chai, which appear in stack traces of failed
|
||||
* tests and which are usually irrelevant to the tested code
|
||||
* @default false
|
||||
*/
|
||||
omitExternalStackFrames?: boolean;
|
||||
/**
|
||||
* Suppress the browser console log at the end of the test run
|
||||
* @default false
|
||||
*/
|
||||
suppressBrowserLogs?: boolean;
|
||||
/**
|
||||
* Only render the graphic after all tests have finished.
|
||||
* This is ideal for using this reporter in a continuous integration environment
|
||||
* @default false
|
||||
*/
|
||||
renderOnRunCompleteOnly?: boolean;
|
||||
}
|
||||
}
|
||||
17
types/karma-brief-reporter/karma-brief-reporter-tests.ts
Normal file
17
types/karma-brief-reporter/karma-brief-reporter-tests.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import karma = require('karma');
|
||||
|
||||
module.exports = (config: karma.Config) => {
|
||||
config.set({
|
||||
// Choose the reporter
|
||||
reporters: ['brief'],
|
||||
// Test reporter options
|
||||
briefReporter: {
|
||||
suppressErrorReport: true,
|
||||
earlyErrorReport: true,
|
||||
suppressErrorHighlighting: true,
|
||||
omitExternalStackFrames: true,
|
||||
suppressBrowserLogs: true,
|
||||
renderOnRunCompleteOnly: true,
|
||||
},
|
||||
});
|
||||
};
|
||||
23
types/karma-brief-reporter/tsconfig.json
Normal file
23
types/karma-brief-reporter/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"karma-brief-reporter-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/karma-brief-reporter/tslint.json
Normal file
1
types/karma-brief-reporter/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user