mutation-testing-elements
Advanced tools
Comparing version 1.5.2 to 1.6.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.6.0](https://github.com/stryker-mutator/mutation-testing-elements/compare/v1.5.2...v1.6.0) (2021-02-22) | ||
### Features | ||
* **metrics:** add test metrics ([#871](https://github.com/stryker-mutator/mutation-testing-elements/issues/871)) ([4758f39](https://github.com/stryker-mutator/mutation-testing-elements/commit/4758f39a3b08a9fd5828d6491d4d559ac38308d6)) | ||
## [1.5.1](https://github.com/stryker-mutator/mutation-testing-elements/compare/v1.5.0...v1.5.1) (2020-12-23) | ||
@@ -8,0 +19,0 @@ |
@@ -1,10 +0,10 @@ | ||
import './components/mutation-test-report-app'; | ||
import './components/mutation-test-report-popup'; | ||
import './components/mutation-test-report-file'; | ||
import './components/mutation-test-report-totals'; | ||
import './components/mutation-test-report-app/mutation-test-report-app.component'; | ||
import './components/mutation-test-report-file/mutation-test-report-file.component'; | ||
import './components/mutation-test-report-totals/mutation-test-report-totals.component'; | ||
import './components/mutation-test-report-breadcrumb'; | ||
import './components/mutation-test-report-mutant'; | ||
import './components/mutation-test-report-modal-dialog'; | ||
import './components/mutation-test-report-file-legend'; | ||
import './components/mutation-test-report-theme-switch'; | ||
import './components/mutation-test-report-mutant/mutation-test-report-mutant.component'; | ||
import './components/mutation-test-report-file-legend/mutation-test-report-file-legend.component'; | ||
import './components/mutation-test-report-theme-switch/mutation-test-report-theme-switch.component'; | ||
import './components/mutation-test-report-drawer/mutation-test-report-drawer.component'; | ||
import './components/mutation-test-report-drawer-mutant/mutation-test-report-drawer-mutant.component'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,10 +0,10 @@ | ||
import './components/mutation-test-report-app'; | ||
import './components/mutation-test-report-popup'; | ||
import './components/mutation-test-report-file'; | ||
import './components/mutation-test-report-totals'; | ||
import './components/mutation-test-report-app/mutation-test-report-app.component'; | ||
import './components/mutation-test-report-file/mutation-test-report-file.component'; | ||
import './components/mutation-test-report-totals/mutation-test-report-totals.component'; | ||
import './components/mutation-test-report-breadcrumb'; | ||
import './components/mutation-test-report-mutant'; | ||
import './components/mutation-test-report-modal-dialog'; | ||
import './components/mutation-test-report-file-legend'; | ||
import './components/mutation-test-report-theme-switch'; | ||
import './components/mutation-test-report-mutant/mutation-test-report-mutant.component'; | ||
import './components/mutation-test-report-file-legend/mutation-test-report-file-legend.component'; | ||
import './components/mutation-test-report-theme-switch/mutation-test-report-theme-switch.component'; | ||
import './components/mutation-test-report-drawer/mutation-test-report-drawer.component'; | ||
import './components/mutation-test-report-drawer-mutant/mutation-test-report-drawer-mutant.component'; | ||
//# sourceMappingURL=index.js.map |
@@ -0,2 +1,6 @@ | ||
import { TemplateResult } from 'lit-element'; | ||
import { MutantStatus } from 'mutation-testing-report-schema'; | ||
export declare function notNullish<T>(value: T | undefined | null): value is T; | ||
export declare function renderIf(condition: unknown, consequence: (() => TemplateResult) | TemplateResult | string): string | TemplateResult | undefined; | ||
export declare function renderIfPresent<T>(value: T | undefined | null, factory: (value: T) => TemplateResult): TemplateResult | undefined; | ||
export declare function getContextClassForStatus(status: MutantStatus): "danger" | "warning" | "success" | "caution" | "secondary"; | ||
@@ -6,2 +10,3 @@ export declare function getEmojiForStatus(status: MutantStatus): "✅" | "🙈" | "🤥" | "👽" | "⌛" | "💥"; | ||
export declare function toAbsoluteUrl(fragment: string): string; | ||
export declare function plural(items: unknown[]): string; | ||
//# sourceMappingURL=htmlHelpers.d.ts.map |
import { MutantStatus } from 'mutation-testing-report-schema'; | ||
export function notNullish(value) { | ||
return value !== null && value !== undefined; | ||
} | ||
export function renderIf(condition, consequence) { | ||
if (condition) { | ||
if (typeof consequence === 'function') { | ||
return consequence(); | ||
} | ||
else { | ||
return consequence; | ||
} | ||
} | ||
else { | ||
return undefined; | ||
} | ||
} | ||
export function renderIfPresent(value, factory) { | ||
if (value === null || value === undefined) { | ||
return undefined; | ||
} | ||
else { | ||
return factory(value); | ||
} | ||
} | ||
export function getContextClassForStatus(status) { | ||
@@ -43,2 +67,8 @@ switch (status) { | ||
} | ||
export function plural(items) { | ||
if (items.length > 1) { | ||
return 's'; | ||
} | ||
return ''; | ||
} | ||
//# sourceMappingURL=htmlHelpers.js.map |
{ | ||
"name": "mutation-testing-elements", | ||
"version": "1.5.2", | ||
"version": "1.6.0", | ||
"description": "A suite of web components for a mutation testing report.", | ||
@@ -9,6 +9,7 @@ "unpkg": "dist/mutation-test-elements.js", | ||
"scripts": { | ||
"start": "webpack-dev-server --open --config webpack.dev.js", | ||
"start": "webpack serve --open --config webpack.dev.js", | ||
"build": "webpack --config webpack.prod.js", | ||
"test": "npm run test:unit && npm run test:integration", | ||
"test:unit": "karma start --singleRun true", | ||
"test:unit:debug": "karma start --browsers ChromeHeadlessDebug", | ||
"test:integration": "mocha --forbid-only --config ./test/integration/.mocharc.jsonc", | ||
@@ -31,7 +32,7 @@ "test:integration:update": "cross-env UPDATE_ALL_SCREENSHOTS=true HEADLESS=true mocha --config ./test/integration/.mocharc.jsonc", | ||
"@types/prismjs": "^1.16.1", | ||
"mutation-testing-metrics": "^1.5.2", | ||
"mutation-testing-report-schema": "^1.5.2", | ||
"mutation-testing-metrics": "^1.6.0", | ||
"mutation-testing-report-schema": "^1.6.0", | ||
"prismjs": "^1.21.0" | ||
}, | ||
"gitHead": "7995f03f14c8e9e80f090abdf44978b6ba47cf4e" | ||
"gitHead": "242a4e31adc6131c10106b4846b0b66c9254e16c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
294336
74
2135