html-reporter 9.3.0 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -377,7 +377,7 @@ module.exports = class TestAdapter {
377
377
  return result;
378
378
  }
379
379
 
380
- //parallelize and cache of 'gemini-core.Image.buildDiff' (because it is very slow)
380
+ //parallelize and cache of 'looks-same.createDiff' (because it is very slow)
381
381
  async _saveDiffInWorker(imageDiffError, destPath, workers, cacheDiffImages = globalCacheDiffImages) {
382
382
  await utils.makeDirFor(destPath);
383
383
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const {Image} = require('gemini-core');
3
+ const looksSame = require('looks-same');
4
4
 
5
5
  module.exports = {
6
6
  /**
@@ -8,6 +8,8 @@ module.exports = {
8
8
  * @param {String} diffPath
9
9
  */
10
10
  saveDiffTo: function(imageDiffError, diffPath) {
11
- return Image.buildDiff({diff: diffPath, ...imageDiffError.diffOpts});
11
+ const {diffColor: highlightColor, ...otherOpts} = imageDiffError.diffOpts;
12
+
13
+ return looksSame.createDiff({diff: diffPath, highlightColor, ...otherOpts});
12
14
  }
13
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-reporter",
3
- "version": "9.3.0",
3
+ "version": "9.4.0",
4
4
  "description": "Plugin for hermione which is intended to aggregate the results of tests running into html report",
5
5
  "scripts": {
6
6
  "coverage": "nyc npm run test-unit",
@@ -55,31 +55,19 @@
55
55
  "filesize": "^8.0.6",
56
56
  "fs-extra": "^7.0.1",
57
57
  "gemini-configparser": "^1.0.0",
58
- "gemini-core": "^6.3.2",
59
58
  "http-codes": "1.0.0",
60
- "immer": "^7.0.7",
61
59
  "inquirer": "^8.2.0",
62
60
  "json-stringify-safe": "^5.0.1",
63
61
  "lodash": "^4.17.4",
64
- "looks-same": "^7.1.1",
65
- "micromatch": "^4.0.4",
62
+ "looks-same": "^8.0.0",
66
63
  "nested-error-stacks": "^2.1.0",
67
64
  "opener": "^1.4.3",
68
65
  "ora": "^5.4.1",
69
66
  "p-queue": "^5.0.0",
70
67
  "qs": "^6.9.1",
71
- "react-hotkeys": "^2.0.0",
72
- "react-html-parser": "^2.0.2",
73
- "react-markdown": "^3.2.0",
74
- "reduce-reducers": "^1.0.4",
75
- "reselect": "^4.0.0",
76
- "resolve": "^1.5.0",
77
- "semver": "^5.5.0",
78
- "shelljs": "^0.8.1",
79
68
  "signal-exit": "^3.0.2",
80
69
  "tmp": "^0.1.0",
81
- "urijs": "^1.18.12",
82
- "web-vitals": "^1.1.2"
70
+ "urijs": "^1.18.12"
83
71
  },
84
72
  "devDependencies": {
85
73
  "@gemini-testing/commander": "^2.15.3",
@@ -122,6 +110,7 @@
122
110
  "html-webpack-plugin": "^2.30.1",
123
111
  "husky": "^0.11.9",
124
112
  "ignore-styles": "^5.0.1",
113
+ "immer": "^7.0.15",
125
114
  "jsdom": "^11.11.0",
126
115
  "jsdom-global": "^3.0.2",
127
116
  "less": "^3.11.1",
@@ -136,13 +125,18 @@
136
125
  "react": "^16.13.1",
137
126
  "react-clipboard.js": "^1.1.2",
138
127
  "react-dom": "^16.13.1",
128
+ "react-hotkeys": "^2.0.0",
129
+ "react-html-parser": "^2.0.2",
130
+ "react-markdown": "^3.6.0",
139
131
  "react-redux": "^7.2.1",
140
132
  "react-virtualized": "^9.22.3",
141
133
  "reapop": "4.0.5",
134
+ "reduce-reducers": "^1.0.4",
142
135
  "redux": "^4.0.5",
143
136
  "redux-logger": "^3.0.6",
144
137
  "redux-mock-store": "^1.5.1",
145
138
  "redux-thunk": "^2.2.0",
139
+ "reselect": "^4.1.6",
146
140
  "rimraf": "^2.6.3",
147
141
  "semantic-ui-react": "^1.2.1",
148
142
  "sinon": "^4.0.1",
@@ -152,6 +146,7 @@
152
146
  "stylus": "^0.57.0",
153
147
  "stylus-loader": "^3.0.2",
154
148
  "url-loader": "^1.1.2",
149
+ "web-vitals": "^1.1.2",
155
150
  "webpack": "^3.6.0",
156
151
  "webpack-dev-server": "^2.11.5",
157
152
  "webpack-merge": "^4.1.1"
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- import React, {Component} from 'react';
4
- import PropTypes from 'prop-types';
5
- import Parser from 'html-react-parser';
6
- import classNames from 'classnames';
7
- import {connect} from 'react-redux';
8
-
9
- class SkippedList extends Component {
10
- static propTypes = {
11
- showSkipped: PropTypes.bool.isRequired,
12
- skips: PropTypes.array.isRequired
13
- }
14
-
15
- render() {
16
- const {showSkipped, skips} = this.props;
17
- const collapsed = !showSkipped;
18
- const className = classNames('skipped__list', {collapsed});
19
-
20
- const skipsTmpl = skips.length > 0
21
- ? this._drawSkips(skips)
22
- : 'There are no skipped tests';
23
-
24
- return (<div className={className}>{skipsTmpl}</div>);
25
- }
26
-
27
- _drawSkips(skips) {
28
- return skips.map((skip, index) => {
29
- const {browser, comment, suite} = skip;
30
- return (
31
- <div key={index} className="skipped-test">
32
- <span className="skipped-test__title">{suite}</span> > {browser}
33
- {comment && ' reason: '}
34
- {comment && Parser(comment)}
35
- </div>
36
- );
37
- });
38
- }
39
- }
40
-
41
- export default connect(
42
- (state) => ({
43
- showSkipped: state.view.showSkipped,
44
- skips: state.skips
45
- })
46
- )(SkippedList);