cypress-fail-on-console-error 2.1.3 → 2.1.4
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.
- package/dist/index.js +7 -3
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -64,7 +68,7 @@ var validateConfig = function (config) {
|
|
|
64
68
|
if (config.includeConsoleTypes) {
|
|
65
69
|
chai.expect(config.includeConsoleTypes).not.to.be.empty;
|
|
66
70
|
config.includeConsoleTypes.forEach(function (_includeConsoleType) {
|
|
67
|
-
return chai.expect((0, ConsoleType_1.someConsoleType)(_includeConsoleType), "includeConsoleTypes '"
|
|
71
|
+
return chai.expect((0, ConsoleType_1.someConsoleType)(_includeConsoleType), "includeConsoleTypes '".concat(_includeConsoleType, "' is an unknown ConsoleType")).to.be.true;
|
|
68
72
|
});
|
|
69
73
|
}
|
|
70
74
|
};
|
|
@@ -123,7 +127,7 @@ var callToString = function (calls) {
|
|
|
123
127
|
var _currentValue = typeof currentValue === 'string'
|
|
124
128
|
? currentValue
|
|
125
129
|
: (currentValue === null || currentValue === void 0 ? void 0 : currentValue.message) || JSON.stringify(currentValue);
|
|
126
|
-
return previousValue
|
|
130
|
+
return "".concat(previousValue, " ").concat(_currentValue);
|
|
127
131
|
}, '')
|
|
128
132
|
.trim();
|
|
129
133
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress-fail-on-console-error",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "fail cypress test on console error",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
"homepage": "https://github.com/nils-hoyer/cypress-fail-on-console-error#readme",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"chai": "^4.3.4",
|
|
38
|
-
"sinon": "^
|
|
38
|
+
"sinon": "^14.0.0",
|
|
39
39
|
"sinon-chai": "^3.7.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/chai": "4.
|
|
42
|
+
"@types/chai": "4.3.1",
|
|
43
43
|
"@types/expect": "24.3.0",
|
|
44
|
-
"@types/mocha": "9.
|
|
45
|
-
"@types/sinon": "10.0.
|
|
46
|
-
"@types/sinon-chai": "3.2.
|
|
47
|
-
"cypress": "9.
|
|
48
|
-
"mocha": "
|
|
49
|
-
"prettier": "2.
|
|
44
|
+
"@types/mocha": "9.1.1",
|
|
45
|
+
"@types/sinon": "10.0.11",
|
|
46
|
+
"@types/sinon-chai": "3.2.8",
|
|
47
|
+
"cypress": "9.7.0",
|
|
48
|
+
"mocha": "10.0.0",
|
|
49
|
+
"prettier": "2.6.2",
|
|
50
50
|
"prettier-plugin-organize-imports": "2.3.4",
|
|
51
|
-
"ts-mocha": "
|
|
52
|
-
"typescript": "4.
|
|
51
|
+
"ts-mocha": "10.0.0",
|
|
52
|
+
"typescript": "4.7.2"
|
|
53
53
|
}
|
|
54
54
|
}
|