@putout/test 15.1.1 → 15.3.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 CHANGED
@@ -99,7 +99,9 @@ When you want to check that report called exact count of times pass an array of
99
99
 
100
100
  ```js
101
101
  test('remove useless variables: dot', (t) => {
102
- t.report('dot', ['Dot files should be added to .gitignore']);
102
+ t.report('dot', [
103
+ 'Dot files should be added to .gitignore',
104
+ ]);
103
105
  t.end();
104
106
  });
105
107
  ```
package/bin/test.js CHANGED
@@ -1,3 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ import process from 'node:process';
3
4
  import 'supertape/bin/supertape';
5
+ import {callWhenTestsEnds} from 'supertape';
6
+ import {getCoverage} from '@putout/printer/type-checker/instrument';
7
+ import {report} from '@putout/printer/type-checker/report';
8
+
9
+ const {log} = console;
10
+
11
+ callWhenTestsEnds('PUTOUT_INSTRUMENT', () => {
12
+ const coverage = getCoverage();
13
+ const [code, message] = report(coverage);
14
+
15
+ log(message);
16
+
17
+ process.exitCode = code;
18
+ });
@@ -21,8 +21,11 @@ export const createError = (help, source, values) => {
21
21
  column: 1,
22
22
  };
23
23
 
24
- throw Error('\n' + codeframe({
25
- source,
26
- error,
27
- }));
24
+ throw Error(
25
+ '\n' +
26
+ codeframe({
27
+ source,
28
+ error,
29
+ }),
30
+ );
28
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/test",
3
- "version": "15.1.1",
3
+ "version": "15.3.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Test runner for 🐊Putout plugins ",
@@ -33,22 +33,25 @@
33
33
  "report": "madrun report"
34
34
  },
35
35
  "dependencies": {
36
- "@putout/cli-process-file": "^6.0.0",
36
+ "@putout/cli-process-file": "^7.0.0",
37
37
  "@putout/engine-parser": "^15.0.7",
38
38
  "@putout/engine-processor": "*",
39
39
  "@putout/engine-reporter": "^8.0.1",
40
40
  "@putout/engine-runner": "*",
41
- "@putout/eslint": "^5.0.0",
41
+ "@putout/eslint": "^6.0.0",
42
42
  "@putout/operator-filesystem": "^11.0.0",
43
43
  "@putout/operator-json": "^3.1.0",
44
44
  "@putout/plugin-filesystem": "*",
45
45
  "currify": "^4.0.0",
46
46
  "montag": "^1.2.1",
47
- "putout": "*",
48
47
  "supertape": "^12.0.0",
49
48
  "try-catch": "^4.0.0",
50
49
  "try-to-catch": "^4.0.0"
51
50
  },
51
+ "peerDependencies": {
52
+ "putout": "*",
53
+ "@putout/printer": "*"
54
+ },
52
55
  "keywords": [
53
56
  "putout",
54
57
  "putout-plugin",
@@ -57,8 +60,7 @@
57
60
  "runner"
58
61
  ],
59
62
  "devDependencies": {
60
- "@putout/eslint-flat": "^4.0.0",
61
- "@putout/formatter-dump": "*",
63
+ "@putout/formatter-dump": "^7.0.0",
62
64
  "@putout/formatter-progress": "*",
63
65
  "@putout/plugin-destructuring": "*",
64
66
  "@putout/plugin-esm": "*",
@@ -66,12 +68,12 @@
66
68
  "@putout/plugin-remove-console": "*",
67
69
  "@putout/plugin-variables": "*",
68
70
  "@putout/processor-wasm": "*",
69
- "c8": "^10.0.0",
70
- "eslint": "^10.0.0-alpha.0",
71
+ "eslint": "^10.0.0",
71
72
  "eslint-plugin-n": "^17.0.0",
72
- "eslint-plugin-putout": "^30.0.0",
73
- "madrun": "^12.0.0",
74
- "nodemon": "^3.0.1"
73
+ "eslint-plugin-putout": "^31.0.0",
74
+ "madrun": "^13.0.0",
75
+ "nodemon": "^3.0.1",
76
+ "superc8": "^12.0.0"
75
77
  },
76
78
  "license": "MIT",
77
79
  "engines": {