Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mutation-testing-elements

Package Overview
Dependencies
Maintainers
3
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mutation-testing-elements - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

dist/components/app/app.component.d.ts

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [1.7.1](https://github.com/stryker-mutator/mutation-testing-elements/compare/v1.7.0...v1.7.1) (2021-05-02)
### Features
* **info:** add tooltip information about states ([#1069](https://github.com/stryker-mutator/mutation-testing-elements/issues/1069)) ([af88c1e](https://github.com/stryker-mutator/mutation-testing-elements/commit/af88c1e355400855ff7001acd81b1c018bfec5ef))
# [1.7.0](https://github.com/stryker-mutator/mutation-testing-elements/compare/v1.6.2...v1.7.0) (2021-03-19)

@@ -8,0 +19,0 @@

25

dist/index.d.ts

@@ -1,10 +0,17 @@

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/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';
import './components/app/app.component';
import './components/file/file.component';
import './components/breadcrumb';
import './components/mutant/mutant.component';
import './components/state-filter/state-filter.component';
import './components/theme-switch/theme-switch.component';
import './components/drawer/drawer.component';
import './components/drawer-mutant/drawer-mutant.component';
import './components/mutant-view/mutant-view';
import './components/test-view/test-view';
import './components/metrics-table/metrics-table.component';
import './components/test-file/test-file.component';
import './components/drawer-test/drawer-test.component';
import './components/file-icon/file-icon.component';
import './components/test-list-item/test-list-item.component';
import './components/tooltip/tooltip.component';
//# sourceMappingURL=index.d.ts.map

@@ -1,10 +0,17 @@

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/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';
import './components/app/app.component';
import './components/file/file.component';
import './components/breadcrumb';
import './components/mutant/mutant.component';
import './components/state-filter/state-filter.component';
import './components/theme-switch/theme-switch.component';
import './components/drawer/drawer.component';
import './components/drawer-mutant/drawer-mutant.component';
import './components/mutant-view/mutant-view';
import './components/test-view/test-view';
import './components/metrics-table/metrics-table.component';
import './components/test-file/test-file.component';
import './components/drawer-test/drawer-test.component';
import './components/file-icon/file-icon.component';
import './components/test-list-item/test-list-item.component';
import './components/tooltip/tooltip.component';
//# sourceMappingURL=index.js.map

@@ -0,3 +1,4 @@

import { TestModel } from 'mutation-testing-metrics';
import { MutantResult } from 'mutation-testing-report-schema';
import { MutantFilter } from '../components/mutation-test-report-file-legend/mutation-test-report-file-legend.component';
import { StateFilter } from '../components/state-filter/state-filter.component';
export interface CustomEventMap {

@@ -8,2 +9,6 @@ 'mutant-selected': {

};
'test-selected': {
selected: boolean;
test: TestModel | undefined;
};
'theme-changed': {

@@ -14,3 +19,3 @@ theme: string;

'theme-switch': 'dark' | 'light';
'filters-changed': MutantFilter[];
'filters-changed': StateFilter<any>[];
'collapse-all': void;

@@ -17,0 +22,0 @@ 'expand-all': void;

import { TemplateResult } from 'lit-element';
import { MutantStatus } from 'mutation-testing-report-schema';
import { TestStatus } from 'mutation-testing-metrics';
import { MutantStatus, OpenEndLocation } 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";
export declare function getContextClassForStatus(status: MutantStatus): "success" | "caution" | "danger" | "warning" | "secondary";
export declare function getContextClassForTestStatus(status: TestStatus): "success" | "caution" | "warning";
export declare function getEmojiForTestStatus(status: TestStatus): "✅" | "☂" | "🌧";
export declare function getEmojiForStatus(status: MutantStatus): "✅" | "🙈" | "🤥" | "👽" | "⌛" | "💥";
export declare function escapeHtml(unsafe: string): string;
export declare function toAbsoluteUrl(fragment: string): string;
export declare function toAbsoluteUrl(...fragments: string[]): string;
export declare function plural(items: unknown[]): string;
export declare function describeLocation({ fileName, location }: {
fileName: string;
location?: OpenEndLocation | undefined;
}): string;
//# sourceMappingURL=htmlHelpers.d.ts.map

@@ -0,1 +1,2 @@

import { TestStatus } from 'mutation-testing-metrics';
import { MutantStatus } from 'mutation-testing-report-schema';

@@ -42,2 +43,22 @@ export function notNullish(value) {

}
export function getContextClassForTestStatus(status) {
switch (status) {
case TestStatus.Killing:
return 'success';
case TestStatus.Covering:
return 'warning';
case TestStatus.NotCovering:
return 'caution';
}
}
export function getEmojiForTestStatus(status) {
switch (status) {
case TestStatus.Killing:
return '✅';
case TestStatus.Covering:
return '☂';
case TestStatus.NotCovering:
return '🌧';
}
}
export function getEmojiForStatus(status) {

@@ -63,6 +84,6 @@ switch (status) {

}
export function toAbsoluteUrl(fragment) {
export function toAbsoluteUrl(...fragments) {
// Use absolute url because of https://github.com/stryker-mutator/mutation-testing-elements/issues/53
const url = new URL(window.location.href);
return new URL(`#${fragment}`, url).href;
return new URL(`#${fragments.filter(Boolean).join('/')}`, url).href;
}

@@ -75,2 +96,5 @@ export function plural(items) {

}
export function describeLocation({ fileName, location }) {
return fileName ? `${fileName}${location ? `:${location.start.line}:${location.start.column}` : ''}` : '';
}
//# sourceMappingURL=htmlHelpers.js.map

@@ -8,2 +8,6 @@ /**

export declare const locationChange$: import("rxjs").Observable<string[]>;
export declare enum View {
mutant = "mutant",
test = "test"
}
//# sourceMappingURL=router.d.ts.map

@@ -10,2 +10,7 @@ import { fromEvent, of, merge } from 'rxjs';

export const locationChange$ = merge(of(1), fromEvent(window, 'hashchange').pipe(tap((event) => event.preventDefault()))).pipe(map(() => window.location.hash.substr(1).split('/').filter(Boolean).map(decodeURIComponent)));
export var View;
(function (View) {
View["mutant"] = "mutant";
View["test"] = "test";
})(View || (View = {}));
//# sourceMappingURL=router.js.map
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

@@ -15,0 +15,0 @@

@@ -0,3 +1,5 @@

import './prism-plugins';
export declare const bootstrap: import("lit-element").CSSResult;
export declare const prismjs: import("lit-element").CSSResult;
export declare const globals: import("lit-element").CSSResult;
//# sourceMappingURL=index.d.ts.map
import { unsafeCSS } from 'lit-element';
import bootstrapCss from './bootstrap.scss';
import prismjsCss from './prismjs.scss';
import globalsCss from './globals.scss';
import './prism-plugins';
export const bootstrap = unsafeCSS(bootstrapCss);
export const prismjs = unsafeCSS(prismjsCss);
export const globals = unsafeCSS(globalsCss);
//# sourceMappingURL=index.js.map
{
"name": "mutation-testing-elements",
"version": "1.7.0",
"version": "1.7.1",
"description": "A suite of web components for a mutation testing report.",

@@ -11,4 +11,4 @@ "unpkg": "dist/mutation-test-elements.js",

"build": "webpack --config webpack.prod.js",
"test": "npm run test:integration",
"test:unit": "karma start --singleRun true",
"test": "npm run test:unit && npm run test:integration",
"test:unit": "karma start --single-run",
"test:unit:debug": "karma start --browsers ChromeHeadlessDebug",

@@ -18,3 +18,3 @@ "test:integration": "mocha --forbid-only --config ./test/integration/.mocharc.jsonc",

"test:integration:headless": "cross-env HEADLESS=true mocha --config ./test/integration/.mocharc.jsonc",
"postpublish": "PUBLISH_ELEMENTS=true ../mutation-testing-metrics-scala/npmProjPublish.sh",
"postpublish": "PUBLISH_ELEMENTS=true ../metrics-scala/npmProjPublish.sh",
"stryker": "cross-env STRYKER=true stryker run"

@@ -30,10 +30,10 @@ },

},
"homepage": "https://github.com/stryker-mutator/mutation-testing-elements/tree/master/packages/mutation-testing-elements#readme",
"homepage": "https://github.com/stryker-mutator/mutation-testing-elements/tree/master/packages/elements#readme",
"devDependencies": {
"@types/prismjs": "^1.16.1",
"mutation-testing-metrics": "^1.6.2",
"mutation-testing-report-schema": "^1.6.0",
"mutation-testing-metrics": "^1.7.1",
"mutation-testing-report-schema": "^1.7.1",
"prismjs": "^1.21.0"
},
"gitHead": "7072f65cb3aa3fe379a1b3f8ea07641ea8225550"
"gitHead": "d41b4031465236283d14148d7f904c881af54108"
}

@@ -11,5 +11,5 @@ [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fstryker-mutator%2Fmutation-testing-elements%2Fmaster%3Fmodule%3Delements)](https://badge-api.stryker-mutator.io/github.com/stryker-mutator/mutation-testing-elements/master?module=elements)

<tr>
<td><img alt="Directory result example" width="300" src="https://raw.githubusercontent.com/stryker-mutator/mutation-testing-elements/master/packages/mutation-testing-elements/docs/directory-result-example.png"></td>
<td><img alt="File result example" width="300" src="https://raw.githubusercontent.com/stryker-mutator/mutation-testing-elements/master/packages/mutation-testing-elements/docs/file-result-example.png"></td>
<td><img alt="File result example dark" width="300" src="https://raw.githubusercontent.com/stryker-mutator/mutation-testing-elements/master/packages/mutation-testing-elements/docs/file-result-example-dark.png"></td>
<td><img alt="Directory result example" width="300" src="https://raw.githubusercontent.com/stryker-mutator/mutation-testing-elements/master/packages/elements/docs/directory-result-example.png"></td>
<td><img alt="File result example" width="300" src="https://raw.githubusercontent.com/stryker-mutator/mutation-testing-elements/master/packages/elements/docs/file-result-example.png"></td>
<td><img alt="File result example dark" width="300" src="https://raw.githubusercontent.com/stryker-mutator/mutation-testing-elements/master/packages/elements/docs/file-result-example-dark.png"></td>
</tr>

@@ -19,3 +19,3 @@ </tbody>

***Note:** Please see https://stryker-mutator.io for an introduction to mutation testing.*
**\*Note:** Please see https://stryker-mutator.io for an introduction to mutation testing.\*

@@ -50,3 +50,3 @@ ## Features

Or you can use the unpkg as your CDN:
Or you can use the unpkg as your CDN:

@@ -65,3 +65,3 @@ ```html

This loads the report from the source (`src`) and displays it.
This loads the report from the source (`src`) and displays it.

@@ -73,5 +73,5 @@ Alternatively, you can use property binding directly:

<script>
document.getElementsByTagName('mutation-test-report-app').item(0).report = {
/* ... */
}
document.getElementsByTagName('mutation-test-report-app').item(0).report = {
/* ... */
};
</script>

@@ -83,3 +83,3 @@ ```

```html
<script>
<script>
const app = document.getElementsByTagName('mutation-test-report-app').item(0);

@@ -98,5 +98,5 @@ function updateTheme() {

The mutation testing report data is expected to be in the format of a the [mutation-testing-report-schema](https://github.com/stryker-mutator/mutation-testing-elements/tree/master/packages/mutation-testing-report-schema#readme). Please view that readme to understand the structure.
The mutation testing report data is expected to be in the format of a the [mutation-testing-report-schema](https://github.com/stryker-mutator/mutation-testing-elements/tree/master/packages/report-schema#readme). Please view that readme to understand the structure.
For some examples, please see the [testResources](https://github.com/stryker-mutator/mutation-testing-elements/tree/master/packages/mutation-testing-elements/testResources).
For some examples, please see the [testResources](https://github.com/stryker-mutator/mutation-testing-elements/tree/master/packages/elements/testResources).

@@ -131,7 +131,7 @@ ## API Reference

Read-only property with the hex code of the background-color from the current theme.
Read-only property with the hex code of the background-color from the current theme.
### ⚡ `theme-changed` [`CustomEvent<{ theme: string, themeBackgroundColor: string }>`]
Add an event listener that will raise an event when the theme is changed.
Add an event listener that will raise an event when the theme is changed.

@@ -141,5 +141,5 @@ ```js

app.addEventListener('theme-changed', (event) => {
console.log('new theme is', event.detail.theme );
console.log('backgroundColor hex is', event.detail.themeBackgroundColor)
// You can also use `app.theme` or `app.themeBackgroundColor` here.
console.log('new theme is', event.detail.theme);
console.log('backgroundColor hex is', event.detail.themeBackgroundColor);
// You can also use `app.theme` or `app.themeBackgroundColor` here.
});

@@ -158,4 +158,4 @@ ```

The integration tests also do screenshot comparisons. Currently, they only run when you're running in a headless browser, because the screenshots differ ever so slightly with the snapshots. You can run `npm run test:integration:headless` to run locally with screenshot comparison. It will compare and show you a diff file if the diff is deemed to large. Screenshot tests can be updated for your environment with `npm run test:integration:update`.
The integration tests also do screenshot comparisons. Currently, they only run when you're running in a headless browser, because the screenshots differ ever so slightly with the snapshots. You can run `npm run test:integration:headless` to run locally with screenshot comparison. It will compare and show you a diff file if the diff is deemed to large. Screenshot tests can be updated for your environment with `npm run test:integration:update`.
Screenshot snapshots are OS dependent, because, again, the screenshots differ ever so slightly on linux vs windows. You can update the screenshot for both linux and windows by running the "Update screenshots" workflow on your branch (with github). _Use with caution_ always double check the diff before updating!

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 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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc