supertape 7.1.0 → 7.2.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/ChangeLog CHANGED
@@ -1,3 +1,25 @@
1
+ 2022.03.29, v7.2.1
2
+
3
+ fix:
4
+ - (package) rm useless chalk
5
+
6
+
7
+ 2022.03.01, v7.2.0
8
+
9
+ feature:
10
+ - (supertape) validator: check scopes: example -> received
11
+
12
+
13
+ 2022.02.28, v7.1.1
14
+
15
+ fix:
16
+ - (supertape) SUPERTAPE_CHECK_ASSERTIONS_COUNT (#2)
17
+
18
+
19
+ feature:
20
+ - (supertape) eslint-plugin-putout v14.0.0
21
+
22
+
1
23
  2022.02.18, v7.1.0
2
24
 
3
25
  feature:
package/lib/cli.js CHANGED
@@ -31,8 +31,8 @@ const filesCount = fullstore(0);
31
31
 
32
32
  const {
33
33
  SUPERTAPE_CHECK_DUPLICATES = '1',
34
- SUPERTAPE_CHECK_SCOPES = '0',
35
- SUPERTAPE_CHECK_ASSERTIONS_COUNT = '0',
34
+ SUPERTAPE_CHECK_SCOPES = '1',
35
+ SUPERTAPE_CHECK_ASSERTIONS_COUNT = '1',
36
36
  } = process.env;
37
37
 
38
38
  module.exports = async ({argv, cwd, stdout, stderr, exit}) => {
@@ -104,8 +104,8 @@ const yargsOptions = {
104
104
  format: 'progress-bar',
105
105
  require: [],
106
106
  checkDuplicates: SUPERTAPE_CHECK_DUPLICATES !== '0',
107
- checkScopes: SUPERTAPE_CHECK_SCOPES === '1',
108
- checkAssertionsCount: SUPERTAPE_CHECK_ASSERTIONS_COUNT === '1',
107
+ checkScopes: SUPERTAPE_CHECK_SCOPES !== '0',
108
+ checkAssertionsCount: SUPERTAPE_CHECK_ASSERTIONS_COUNT !== '0',
109
109
  },
110
110
  };
111
111
 
package/lib/validator.js CHANGED
@@ -104,7 +104,7 @@ function checkScopes(msg, filtered) {
104
104
  const [message, at] = filtered[0];
105
105
 
106
106
  if (!SCOPE_DEFINED.test(message))
107
- return [`Scope should be defined before first colon: 'scope: subject', example: 'supertape: validator: enabled'`, at];
107
+ return [`Scope should be defined before first colon: 'scope: subject', received: '${message}'`, at];
108
108
 
109
109
  return [];
110
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "7.1.0",
3
+ "version": "7.2.1",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "📼 Supertape simplest high speed test runner with superpowers",
6
6
  "homepage": "http://github.com/coderaiser/supertape",
@@ -48,7 +48,6 @@
48
48
  "@supertape/formatter-short": "^1.0.0",
49
49
  "@supertape/formatter-tap": "^2.0.0",
50
50
  "@supertape/operator-stub": "^1.0.0",
51
- "chalk": "^4.1.0",
52
51
  "cli-progress": "^3.8.2",
53
52
  "deep-equal": "^2.0.3",
54
53
  "fullstore": "^3.0.0",
@@ -79,7 +78,7 @@
79
78
  "check-dts": "^0.6.5",
80
79
  "eslint": "^8.0.0",
81
80
  "eslint-plugin-node": "^11.1.0",
82
- "eslint-plugin-putout": "^13.0.1",
81
+ "eslint-plugin-putout": "^14.0.0",
83
82
  "find-up": "^6.3.0",
84
83
  "madrun": "^9.0.0",
85
84
  "mock-require": "^3.0.2",