@putout/test 8.4.0 β 9.0.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/README.md +1 -3
- package/lib/test.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -31,8 +31,6 @@ PUTOUT_PRINTER=putout tape test/*.js
|
|
|
31
31
|
|
|
32
32
|
## Plugins API
|
|
33
33
|
|
|
34
|
-
All π**Putout** plugins written in `CommonJS`, since `ESLint` written on `CommonJS` and we have a huge `ESLint`-based ecosystem which is good to reuse.
|
|
35
|
-
|
|
36
34
|
π**Putout** can be used in all IDE's supported by`ESLint` as [`eslint-plugin-putout`](https://github.com/coderaiser/putout/tree/packages/eslint-plugin-putout).
|
|
37
35
|
When [async rules will be supported](https://github.com/eslint/eslint/issues/15394) we can switch to `ESM`.
|
|
38
36
|
|
|
@@ -58,7 +56,7 @@ const test = createTest(import.meta.url, {
|
|
|
58
56
|
});
|
|
59
57
|
```
|
|
60
58
|
|
|
61
|
-
### `report(filename, message | []
|
|
59
|
+
### `report(filename, message: string | string[])`
|
|
62
60
|
|
|
63
61
|
Check error message (or messages) of a plugin:
|
|
64
62
|
|
package/lib/test.js
CHANGED
|
@@ -607,7 +607,7 @@ function parseOptions(plugin) {
|
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
function checkReport(name, message) {
|
|
610
|
-
if (!message) {
|
|
610
|
+
if (!isString(message) && !message) {
|
|
611
611
|
const help = `βοΈ Looks like you forget to pass the 'message' for 'report()' operator`;
|
|
612
612
|
const source = `report(name: string, message: string): Operator`;
|
|
613
613
|
const values = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/test",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Test runner for πPutout plugins ",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"currify": "^4.0.0",
|
|
47
47
|
"montag": "^1.2.1",
|
|
48
48
|
"putout": "*",
|
|
49
|
-
"supertape": "^
|
|
49
|
+
"supertape": "^10.0.0",
|
|
50
50
|
"try-catch": "^3.0.0",
|
|
51
51
|
"try-to-catch": "^3.0.0"
|
|
52
52
|
},
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@putout/plugin-remove-unused-variables": "*",
|
|
68
68
|
"c8": "^9.0.0",
|
|
69
69
|
"eslint": "^9.0.0-alpha.0",
|
|
70
|
-
"eslint-plugin-n": "^
|
|
70
|
+
"eslint-plugin-n": "^17.0.0-0",
|
|
71
71
|
"eslint-plugin-putout": "^22.0.0",
|
|
72
72
|
"lerna": "^6.0.1",
|
|
73
73
|
"madrun": "^10.0.0",
|