cypress-fail-on-console-error 5.1.0 → 5.1.3
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/README.md +2 -2
- package/package.json +12 -13
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# cypress-fail-on-console-error
|
|
2
2
|
|
|
3
|
-
This Plugin observes `console.error()` function from [window object](https://developer.mozilla.org/de/docs/Web/API/Window). Cypress test will fail when the error conditions are met. For observing network errors please check out [cypress-fail-on-network-
|
|
3
|
+
This Plugin observes `console.error()` function from [window object](https://developer.mozilla.org/de/docs/Web/API/Window). Cypress test will fail when the error conditions are met. For observing network errors please check out [cypress-fail-on-network-error](https://www.npmjs.com/package/cypress-fail-on-network-error).
|
|
4
4
|
|
|
5
5
|
### Installation
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ failOnConsoleError();
|
|
|
23
23
|
| Parameter | Default | <div style="width:300px">Description</div> |
|
|
24
24
|
|--- |--- |--- |
|
|
25
25
|
| `consoleMessages` | `[]` | Exclude console messages from throwing `AssertionError`. Types `RegExp` and `string` are accepted. Strings will be converted to regular expression. [RegExp.test()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test?retiredLocale=de) will be used for console message matching. Make sure to [escape special characters](https://javascript.info/regexp-escaping). When console message property `stacktrace` exists, then the whole stacktrace can be matched. |
|
|
26
|
-
| `consoleTypes` | `['error']` | Define console types for observation. `error`, `warn`, `info`, `debug`, `trace , `table` are accepted values.
|
|
26
|
+
| `consoleTypes` | `['error']` | Define console types for observation. `error`, `warn`, `info`, `debug`, `trace` , `table` are accepted values.
|
|
27
27
|
| `debug` | `false` | Enable debug logs for `consoleMessage_configConsoleMessage_match` and `consoleMessage_excluded` to cypress runner
|
|
28
28
|
|
|
29
29
|
<br/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress-fail-on-console-error",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "fail cypress test on console error",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -38,25 +38,24 @@
|
|
|
38
38
|
"homepage": "https://github.com/nils-hoyer/cypress-fail-on-console-error#readme",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"chai": "^4.3.10",
|
|
41
|
-
"sinon": "^
|
|
41
|
+
"sinon": "^21.0.0",
|
|
42
42
|
"sinon-chai": "^3.7.0",
|
|
43
43
|
"type-detect": "^4.0.8"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@cypress/mount-utils": "^4.0.0",
|
|
47
|
-
"@types/chai": "4.3.
|
|
48
|
-
"@types/
|
|
49
|
-
"@types/
|
|
50
|
-
"@types/sinon": "17.0.2",
|
|
47
|
+
"@types/chai": "4.3.20",
|
|
48
|
+
"@types/mocha": "10.0.10",
|
|
49
|
+
"@types/sinon": "21.0.0",
|
|
51
50
|
"@types/sinon-chai": "3.2.12",
|
|
52
51
|
"@types/type-detect": "4.0.3",
|
|
53
|
-
"cypress": "
|
|
54
|
-
"mocha": "
|
|
55
|
-
"prettier": "3.
|
|
56
|
-
"prettier-plugin-organize-imports": "3.
|
|
57
|
-
"rimraf": "
|
|
58
|
-
"typescript": "5.
|
|
59
|
-
"vite": "^
|
|
52
|
+
"cypress": "15.8.1",
|
|
53
|
+
"mocha": "11.7.5",
|
|
54
|
+
"prettier": "3.7.4",
|
|
55
|
+
"prettier-plugin-organize-imports": "4.3.0",
|
|
56
|
+
"rimraf": "6.1.2",
|
|
57
|
+
"typescript": "5.9.3",
|
|
58
|
+
"vite": "^7.0.0",
|
|
60
59
|
"vitest": "^1.0.0"
|
|
61
60
|
}
|
|
62
61
|
}
|