fail-on-console 1.3.0 → 1.3.1
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/CHANGELOG.md +7 -0
- package/index.d.ts +1 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.3.1](https://github.com/benquarmby/fail-on-console/compare/v1.3.0...v1.3.1) (2026-08-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* use correct rule type for allowStream declaration ([23fe420](https://github.com/benquarmby/fail-on-console/commit/23fe42050a7a46959ea6f2b68204a41e424bcacc))
|
|
9
|
+
|
|
3
10
|
## [1.3.0](https://github.com/benquarmby/fail-on-console/compare/v1.2.0...v1.3.0) (2026-08-01)
|
|
4
11
|
|
|
5
12
|
|
package/index.d.ts
CHANGED
|
@@ -105,4 +105,4 @@ export function allowConsole(method: ConsoleMethod, rules: AllowRule | AllowRule
|
|
|
105
105
|
* // Mixed array - allow standard errors using multiple rules at once
|
|
106
106
|
* allowStream("stderr", ["known warning", /deprecated/, (m) => m.includes("third-party")]);
|
|
107
107
|
*/
|
|
108
|
-
export function allowStream(stream: ProcessStream, rules:
|
|
108
|
+
export function allowStream(stream: ProcessStream, rules: AllowRule | AllowRule[]): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fail-on-console",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Fail Vitest or Jest tests when unexpected console logs, warnings or errors occur.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jest",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"npm-run-all2": "^9.0.3",
|
|
27
27
|
"prettier": "^3.9.6",
|
|
28
28
|
"prettier-plugin-packagejson": "^3.0.2",
|
|
29
|
+
"typescript": "^7.0.2",
|
|
29
30
|
"vitest": "^4.1.10"
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"format:check": "prettier --check .",
|
|
35
36
|
"test:jest": "jest",
|
|
36
37
|
"test:vitest": "vitest run --coverage",
|
|
37
|
-
"
|
|
38
|
+
"type:check": "tsc",
|
|
39
|
+
"verify": "run-s commit:check format:check type:check test:vitest test:jest"
|
|
38
40
|
}
|
|
39
41
|
}
|