@putout/plugin-putout 11.1.1 → 11.2.0
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/add-args/index.js +12 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -417,7 +417,7 @@ module.exports.replace = () => ({
|
|
|
417
417
|
});
|
|
418
418
|
```
|
|
419
419
|
|
|
420
|
-
There is no `fix` for this rule, it used internally to be more confident about `test coverage`, because of declaration form, transforms cannon be checked by `nyc` and `c8`, and uncovered lines can find unfixable false
|
|
420
|
+
There is no `fix` for this rule, it used internally to be more confident about `test coverage`, because of declaration form, transforms cannon be checked by `nyc` and `c8`, and uncovered lines can find unfixable false positives when running on code.
|
|
421
421
|
This is additional tests, if you forget to test some case (from a big list of rules that is supported) it will be checked with this `rule` and make transforms more stable.
|
|
422
422
|
|
|
423
423
|
## declare
|
package/lib/add-args/index.js
CHANGED
|
@@ -4,7 +4,17 @@ const {operator} = require('putout');
|
|
|
4
4
|
const {addArgs} = operator;
|
|
5
5
|
|
|
6
6
|
module.exports = addArgs({
|
|
7
|
-
comparePlaces: ['{comparePlaces}',
|
|
8
|
-
|
|
7
|
+
comparePlaces: ['{comparePlaces}', [
|
|
8
|
+
'test("__a", async (__args) => __body)',
|
|
9
|
+
'test.skip("__a", async (__args) => __body)',
|
|
10
|
+
'test.only("__a", async (__args) => __body)',
|
|
11
|
+
],
|
|
12
|
+
],
|
|
13
|
+
process: ['{process}', [
|
|
14
|
+
'test("__a", async (__args) => __body)',
|
|
15
|
+
'test.skip("__a", async (__args) => __body)',
|
|
16
|
+
'test.only("__a", async (__args) => __body)',
|
|
17
|
+
],
|
|
18
|
+
],
|
|
9
19
|
});
|
|
10
20
|
|
package/package.json
CHANGED