@putout/plugin-tape 9.14.0 → 10.0.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 +24 -0
- package/lib/add-await-to-re-import/index.js +0 -1
- package/lib/convert-equal-to-deep-equal/index.js +0 -1
- package/lib/index.js +1 -0
- package/lib/jest/index.js +9 -0
- package/lib/remove-skip/index.js +0 -1
- package/lib/remove-useless-t-end/index.js +0 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ npm i @putout/plugin-tape -D
|
|
|
20
20
|
```json
|
|
21
21
|
{
|
|
22
22
|
"rules": {
|
|
23
|
+
"tape/jest": "on",
|
|
23
24
|
"tape/apply-stub": "on",
|
|
24
25
|
"tape/apply-destructuring": "on",
|
|
25
26
|
"tape/apply-stub-operator": "on",
|
|
@@ -54,6 +55,29 @@ npm i @putout/plugin-tape -D
|
|
|
54
55
|
}
|
|
55
56
|
```
|
|
56
57
|
|
|
58
|
+
## jest
|
|
59
|
+
|
|
60
|
+
🐊**Putout** gives ability to switch easily from [**Jest**](https://github.com/coderaiser/putout/blob/master/packages/plugin-jest/README.md#putoutplugin-jest-) to 📼**Supertape**. Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/e610ded68d5808c2dbc09a1f84be8a96/d70f52e44d6c3ffb9387772ee9ad61fd2ca01dcd).
|
|
61
|
+
|
|
62
|
+
### ❌ Example of incorrect code
|
|
63
|
+
|
|
64
|
+
```js
|
|
65
|
+
it('should equal', () => {
|
|
66
|
+
expect(a).toEqual(b);
|
|
67
|
+
});
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### ✅ Example of correct code
|
|
71
|
+
|
|
72
|
+
```js
|
|
73
|
+
import {test} from 'supertape';
|
|
74
|
+
|
|
75
|
+
test('should equal', () => {
|
|
76
|
+
t.equal(a, b);
|
|
77
|
+
t.end();
|
|
78
|
+
});
|
|
79
|
+
```
|
|
80
|
+
|
|
57
81
|
## switch-expected-with-result
|
|
58
82
|
|
|
59
83
|
📼**Supertape** uses more natural way of
|
package/lib/index.js
CHANGED
|
@@ -9,6 +9,7 @@ module.exports.rules = {
|
|
|
9
9
|
...getRule('apply-destructuring'),
|
|
10
10
|
...getRule('apply-with-name'),
|
|
11
11
|
...getRule('add-await-to-re-import'),
|
|
12
|
+
...getRule('jest'),
|
|
12
13
|
...getRule('sync-with-name'),
|
|
13
14
|
...getRule('convert-tape-to-supertape'),
|
|
14
15
|
...getRule('convert-throws-to-try-catch'),
|
package/lib/remove-skip/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-tape",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout plugin helps with tests",
|
|
7
7
|
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/plugin-tape#readme",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
|
+
"commitType": "colon",
|
|
9
10
|
"release": false,
|
|
10
11
|
"tag": false,
|
|
11
12
|
"changelog": false,
|
|
@@ -34,15 +35,15 @@
|
|
|
34
35
|
"@putout/test": "^5.0.0",
|
|
35
36
|
"c8": "^7.5.0",
|
|
36
37
|
"eslint": "^8.0.1",
|
|
37
|
-
"eslint-plugin-
|
|
38
|
-
"eslint-plugin-putout": "^
|
|
39
|
-
"lerna": "^
|
|
38
|
+
"eslint-plugin-n": "^15.2.4",
|
|
39
|
+
"eslint-plugin-putout": "^16.0.0",
|
|
40
|
+
"lerna": "^6.0.1",
|
|
40
41
|
"madrun": "^9.0.0",
|
|
41
42
|
"montag": "^1.2.1",
|
|
42
43
|
"nodemon": "^2.0.1"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
|
-
"putout": ">=
|
|
46
|
+
"putout": ">=28"
|
|
46
47
|
},
|
|
47
48
|
"license": "MIT",
|
|
48
49
|
"engines": {
|