@putout/test 12.1.0 → 13.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 -1
- package/lib/processor/index.js +4 -1
- package/lib/test.js +4 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -115,7 +115,7 @@ test('remove-console: property identifier: code', (t) => {
|
|
|
115
115
|
});
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
### `reportWithOptions(filename, options)`
|
|
118
|
+
### `reportWithOptions(filename, message: string | string[], options)`
|
|
119
119
|
|
|
120
120
|
Check report of `filename.js` with `options`:
|
|
121
121
|
|
package/lib/processor/index.js
CHANGED
|
@@ -45,7 +45,10 @@ const buildOptions = ({options, plugins, processors}) => ({
|
|
|
45
45
|
const addDot = (a) => a ? `.${a}` : '';
|
|
46
46
|
|
|
47
47
|
const fail = (t, message) => {
|
|
48
|
-
const {
|
|
48
|
+
const {
|
|
49
|
+
__putout_test_fail = t.fail,
|
|
50
|
+
} = global;
|
|
51
|
+
|
|
49
52
|
return __putout_test_fail(message);
|
|
50
53
|
};
|
|
51
54
|
|
package/lib/test.js
CHANGED
|
@@ -36,7 +36,10 @@ global.__putout_test_fs = {
|
|
|
36
36
|
const isUpdate = () => Boolean(Number(process.env.UPDATE));
|
|
37
37
|
|
|
38
38
|
const fail = (t, message) => {
|
|
39
|
-
const {
|
|
39
|
+
const {
|
|
40
|
+
__putout_test_fail = t.fail,
|
|
41
|
+
} = global;
|
|
42
|
+
|
|
40
43
|
return __putout_test_fail(message);
|
|
41
44
|
};
|
|
42
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/test",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.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 ",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"report": "madrun report"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@putout/cli-process-file": "^
|
|
41
|
+
"@putout/cli-process-file": "^3.0.0",
|
|
42
42
|
"@putout/engine-processor": "*",
|
|
43
43
|
"@putout/engine-runner": "*",
|
|
44
44
|
"@putout/eslint": "^4.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"currify": "^4.0.0",
|
|
47
47
|
"montag": "^1.2.1",
|
|
48
48
|
"putout": "*",
|
|
49
|
-
"supertape": "^
|
|
49
|
+
"supertape": "^11.0.3",
|
|
50
50
|
"try-catch": "^3.0.0",
|
|
51
51
|
"try-to-catch": "^3.0.0"
|
|
52
52
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"runner"
|
|
59
59
|
],
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@putout/eslint-flat": "^
|
|
61
|
+
"@putout/eslint-flat": "^3.0.0",
|
|
62
62
|
"@putout/formatter-dump": "*",
|
|
63
63
|
"@putout/formatter-progress": "*",
|
|
64
64
|
"@putout/plugin-esm": "*",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"c8": "^10.0.0",
|
|
70
70
|
"eslint": "^9.0.0",
|
|
71
71
|
"eslint-plugin-n": "^17.0.0",
|
|
72
|
-
"eslint-plugin-putout": "^
|
|
73
|
-
"madrun": "^
|
|
72
|
+
"eslint-plugin-putout": "^26.0.0",
|
|
73
|
+
"madrun": "^11.0.0",
|
|
74
74
|
"mock-require": "^3.0.3",
|
|
75
75
|
"nodemon": "^3.0.1",
|
|
76
76
|
"strip-ansi": "^7.1.0"
|
|
77
77
|
},
|
|
78
78
|
"license": "MIT",
|
|
79
79
|
"engines": {
|
|
80
|
-
"node": ">=
|
|
80
|
+
"node": ">=20"
|
|
81
81
|
},
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|