@putout/test 13.0.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.
package/README.md CHANGED
@@ -200,6 +200,17 @@ test('plugin-putout: check-replace-code: no report: typescript', (t) => {
200
200
  });
201
201
  ```
202
202
 
203
+ ### `noReportCode(filename)`
204
+
205
+ Check error message of a plugin not produces
206
+
207
+ ```js
208
+ test('plugin-putout: check-replace-code: no report: import', (t) => {
209
+ t.noReportCode(`import a from 'a'`);
210
+ t.end();
211
+ });
212
+ ```
213
+
203
214
  ### `noReportAfterTransform(filename)`
204
215
 
205
216
  Check error message of a plugin not produced
@@ -45,7 +45,10 @@ const buildOptions = ({options, plugins, processors}) => ({
45
45
  const addDot = (a) => a ? `.${a}` : '';
46
46
 
47
47
  const fail = (t, message) => {
48
- const {__putout_test_fail = t.fail} = global;
48
+ const {
49
+ __putout_test_fail = t.fail,
50
+ } = global;
51
+
49
52
  return __putout_test_fail(message);
50
53
  };
51
54
 
package/lib/test.js CHANGED
@@ -36,7 +36,10 @@ global.__putout_test_fs = {
36
36
  const isUpdate = () => Boolean(Number(process.env.UPDATE));
37
37
 
38
38
  const fail = (t, message) => {
39
- const {__putout_test_fail = t.fail} = global;
39
+ const {
40
+ __putout_test_fail = t.fail,
41
+ } = global;
42
+
40
43
  return __putout_test_fail(message);
41
44
  };
42
45
 
@@ -126,6 +129,7 @@ function createTest(dir, maybeOptions) {
126
129
  reportWithOptions: reportWithOptions(dir, lint, options),
127
130
  noReportWithOptions: noReportWithOptions(dir, lint, options),
128
131
  reportCode: reportCode(lint, options),
132
+ noReportCode: noReportCode(lint, options),
129
133
  format: formatSave(dir, options),
130
134
  formatMany: formatManySave(dir, options),
131
135
  noFormat: noFormat(dir, options),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/test",
3
- "version": "13.0.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": "Test runner for 🐊Putout plugins ",
@@ -38,7 +38,7 @@
38
38
  "report": "madrun report"
39
39
  },
40
40
  "dependencies": {
41
- "@putout/cli-process-file": "^2.0.1",
41
+ "@putout/cli-process-file": "^3.0.0",
42
42
  "@putout/engine-processor": "*",
43
43
  "@putout/engine-runner": "*",
44
44
  "@putout/eslint": "^4.0.0",