@putout/test 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 CHANGED
@@ -21,14 +21,6 @@ Set environment variable `UPDATE=1` to update `transform` and `format` fixtures
21
21
  UPDATE=1 tape test/*.js
22
22
  ```
23
23
 
24
- ## Printer
25
-
26
- You can override default printer (`recast`) with [`putout`](https://github.com/putoutjs/printer) or `babel` using:
27
-
28
- ```sh
29
- PUTOUT_PRINTER=putout tape test/*.js
30
- ```
31
-
32
24
  ## Plugins API
33
25
 
34
26
  🐊**Putout** can be used in all IDE's supported by`ESLint` as [`eslint-plugin-putout`](https://github.com/coderaiser/putout/tree/packages/eslint-plugin-putout).
@@ -9,12 +9,12 @@ import {
9
9
  extname,
10
10
  basename,
11
11
  } from 'node:path';
12
+ import process from 'node:process';
12
13
  import eslint from '@putout/eslint';
13
14
  import tryToCatch from 'try-to-catch';
14
15
  import {extend} from 'supertape';
15
16
  import {lint} from '@putout/eslint/lint';
16
17
  import tryCatch from 'try-catch';
17
- import process from 'node:process';
18
18
 
19
19
  const {keys} = Object;
20
20
  const {isArray} = Array;
package/lib/test.js CHANGED
@@ -34,7 +34,6 @@ global.__putout_test_fs = {
34
34
  };
35
35
 
36
36
  const isUpdate = () => Boolean(Number(process.env.UPDATE));
37
- const getPrinter = () => process.env.PUTOUT_PRINTER;
38
37
 
39
38
  const fail = (t, message) => {
40
39
  const {__putout_test_fail = t.fail} = global;
@@ -293,7 +292,6 @@ const progress = (dir, options) => (t) => async (name, expected) => {
293
292
  once(progress, 'file'),
294
293
  putout(input, {
295
294
  progress,
296
- printer: getPrinter(),
297
295
  isTS,
298
296
  ...options,
299
297
  }),
@@ -318,7 +316,6 @@ const progressWithOptions = (dir, options) => (t) => async (name, pluginOptions,
318
316
  putout(input, {
319
317
  rules,
320
318
  progress,
321
- printer: getPrinter(),
322
319
  isTS,
323
320
  ...options,
324
321
  }),
@@ -340,7 +337,6 @@ const transform = currify((dir, options, t, name, transformed = null, addons = {
340
337
  addons = addons || {};
341
338
 
342
339
  const {code} = putout(input, {
343
- printer: getPrinter(),
344
340
  isTS,
345
341
  ...options,
346
342
  plugins: [{
@@ -378,7 +374,6 @@ const transformWithOptions = currify((dir, options, t, name, pluginOptions) => {
378
374
  };
379
375
 
380
376
  const {code} = putout(input, {
381
- printer: getPrinter(),
382
377
  isTS,
383
378
  rules,
384
379
  ...options,
@@ -440,7 +435,6 @@ const noTransform = currify((dir, options, t, name, addons = {}) => {
440
435
  const [input, isTS] = readFixture(full);
441
436
 
442
437
  const {code} = putout(input, {
443
- printer: getPrinter(),
444
438
  isTS,
445
439
  ...options,
446
440
  plugins: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/test",
3
- "version": "10.0.0",
3
+ "version": "11.0.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 ",
@@ -65,7 +65,7 @@
65
65
  "@putout/plugin-remove-console": "*",
66
66
  "@putout/plugin-remove-empty": "*",
67
67
  "@putout/plugin-remove-unused-variables": "*",
68
- "c8": "^9.0.0",
68
+ "c8": "^10.0.0",
69
69
  "eslint": "^9.0.0",
70
70
  "eslint-plugin-n": "^17.0.0",
71
71
  "eslint-plugin-putout": "^22.0.0",