@putout/plugin-tape 12.1.0 → 13.1.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.
@@ -7,7 +7,6 @@ const {
7
7
  } = require('putout');
8
8
 
9
9
  const {compare, traverse} = operator;
10
-
11
10
  const {ExpressionStatement} = types;
12
11
 
13
12
  module.exports.report = () => `'t.end()' is missing at the end of the test`;
@@ -37,8 +36,13 @@ function match({__body}, path) {
37
36
  let found = false;
38
37
 
39
38
  traverse(path, {
40
- 't.end()': () => {
39
+ 'await t.__(__args)': () => {
40
+ found = true;
41
+ path.stop();
42
+ },
43
+ 't.end()': (path) => {
41
44
  found = true;
45
+ path.stop();
42
46
  },
43
47
  });
44
48
 
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const {types} = require('putout');
3
+ const {types, operator} = require('putout');
4
+ const {compare} = operator;
4
5
  const {
5
6
  isArrayExpression,
6
7
  isIdentifier,
@@ -39,5 +40,8 @@ function check({__b}, path) {
39
40
  if (!isIdentifier(id, {name: 'expected'}))
40
41
  return false;
41
42
 
43
+ if (compare(init, 'Buffer.from(__a)'))
44
+ return true;
45
+
42
46
  return isObjectExpression(init) || isArrayExpression(init);
43
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-tape",
3
- "version": "12.1.0",
3
+ "version": "13.1.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",
@@ -31,22 +31,23 @@
31
31
  "putout"
32
32
  ],
33
33
  "devDependencies": {
34
- "@putout/test": "^7.0.0",
34
+ "@putout/plugin-putout": "*",
35
+ "@putout/test": "^8.0.0",
35
36
  "c8": "^8.0.0",
36
37
  "eslint": "^8.0.1",
37
38
  "eslint-plugin-n": "^16.0.0",
38
- "eslint-plugin-putout": "^21.0.0",
39
+ "eslint-plugin-putout": "^22.0.0",
39
40
  "lerna": "^6.0.1",
40
- "madrun": "^9.0.0",
41
+ "madrun": "^10.0.0",
41
42
  "montag": "^1.2.1",
42
43
  "nodemon": "^3.0.1"
43
44
  },
44
45
  "peerDependencies": {
45
- "putout": ">=33"
46
+ "putout": ">=34"
46
47
  },
47
48
  "license": "MIT",
48
49
  "engines": {
49
- "node": ">=16"
50
+ "node": ">=18"
50
51
  },
51
52
  "publishConfig": {
52
53
  "access": "public"