@putout/plugin-tape 10.0.0 โ 11.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 +1 -1
- package/lib/declare/index.js +16 -6
- package/lib/jest/index.js +1 -1
- package/package.json +3 -4
- package/lib/declare/declarations.js +0 -18
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ npm i @putout/plugin-tape -D
|
|
|
57
57
|
|
|
58
58
|
## jest
|
|
59
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/
|
|
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/c8f515668b5bdf16b58ef85c3ca13d93682f3ccb).
|
|
61
61
|
|
|
62
62
|
### โ Example of incorrect code
|
|
63
63
|
|
package/lib/declare/index.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
module.exports.declare = () => ({
|
|
4
|
+
test: 'import {test} from "supertape"',
|
|
5
|
+
stub: 'import {stub} from "supertape"',
|
|
6
|
+
Test: 'import {Test} from "supertape"',
|
|
7
|
+
Stub: 'import {Stub} from "supertape"',
|
|
8
|
+
|
|
9
|
+
mockImport: `const {mockImport} = createMockImport(import.meta.url)`,
|
|
10
|
+
reImport: `const {reImport} = createMockImport(import.meta.url)`,
|
|
11
|
+
mockRequire: `import mockRequire from 'mock-require'`,
|
|
12
|
+
reRequire: `const {reRequire} = mockRequire`,
|
|
13
|
+
stopAll: {
|
|
14
|
+
esm: `const {stopAll} = createMockImport(import.meta.url)`,
|
|
15
|
+
commonjs: `const {stopAll} = mockRequire`,
|
|
16
|
+
},
|
|
17
|
+
createMockImport: `import {createMockImport} from 'mock-import'`,
|
|
18
|
+
});
|
package/lib/jest/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-tape",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.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",
|
|
10
9
|
"release": false,
|
|
11
10
|
"tag": false,
|
|
12
11
|
"changelog": false,
|
|
@@ -32,7 +31,7 @@
|
|
|
32
31
|
"putout"
|
|
33
32
|
],
|
|
34
33
|
"devDependencies": {
|
|
35
|
-
"@putout/test": "^
|
|
34
|
+
"@putout/test": "^6.0.0",
|
|
36
35
|
"c8": "^7.5.0",
|
|
37
36
|
"eslint": "^8.0.1",
|
|
38
37
|
"eslint-plugin-n": "^15.2.4",
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
"nodemon": "^2.0.1"
|
|
44
43
|
},
|
|
45
44
|
"peerDependencies": {
|
|
46
|
-
"putout": ">=
|
|
45
|
+
"putout": ">=29"
|
|
47
46
|
},
|
|
48
47
|
"license": "MIT",
|
|
49
48
|
"engines": {
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
test: 'import {test} from "supertape"',
|
|
5
|
-
stub: 'import {stub} from "supertape"',
|
|
6
|
-
Test: 'import {Test} from "supertape"',
|
|
7
|
-
Stub: 'import {Stub} from "supertape"',
|
|
8
|
-
|
|
9
|
-
mockImport: `const {mockImport} = createMockImport(import.meta.url)`,
|
|
10
|
-
reImport: `const {reImport} = createMockImport(import.meta.url)`,
|
|
11
|
-
mockRequire: `import mockRequire from 'mock-require'`,
|
|
12
|
-
reRequire: `const {reRequire} = mockRequire`,
|
|
13
|
-
stopAll: {
|
|
14
|
-
esm: `const {stopAll} = createMockImport(import.meta.url)`,
|
|
15
|
-
commonjs: `const {stopAll} = mockRequire`,
|
|
16
|
-
},
|
|
17
|
-
createMockImport: `import {createMockImport} from 'mock-import'`,
|
|
18
|
-
};
|