@putout/test 11.2.0 → 11.3.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/README.md CHANGED
@@ -41,7 +41,6 @@ You can also pass all 🐊**Putout** options:
41
41
 
42
42
  ```js
43
43
  const test = createTest(import.meta.url, {
44
- printer: 'putout',
45
44
  plugins: [
46
45
  ['remove-unused-variables', rmVars],
47
46
  ],
@@ -393,9 +392,7 @@ test('test: eslint: noProcess', async ({noProcess}) => {
393
392
  test('test: eslint: noProcess', async ({noProcess}) => {
394
393
  await noProcess('operator-linebreak-fix', {
395
394
  rules: {
396
- 'putout/putout': ['error', {
397
- printer: 'putout',
398
- }],
395
+ 'putout/putout': ['error', {}],
399
396
  },
400
397
  });
401
398
  });
@@ -77,7 +77,6 @@ export const createTest = (url, plugins = {}) => {
77
77
  process: (operator) => async (name, override) => {
78
78
  const full = join(fixtureDir, name);
79
79
  const [resolvedName, code] = await read(full);
80
- const [fixturePath, fixture] = await read(`${full}-fix`);
81
80
  const fix = true;
82
81
 
83
82
  const [source] = await eslint({
@@ -92,10 +91,12 @@ export const createTest = (url, plugins = {}) => {
92
91
  });
93
92
 
94
93
  if (isUpdate()) {
95
- update(fixturePath, source);
94
+ update(resolvedName, source);
96
95
  return operator.pass('fixture updated');
97
96
  }
98
97
 
98
+ const [, fixture] = await read(`${full}-fix`);
99
+
99
100
  return operator.equal(source, fixture);
100
101
  },
101
102
  noProcess: (operator) => async (name, overrides) => {
package/lib/test.js CHANGED
@@ -635,6 +635,6 @@ function checkProgress(name, expected) {
635
635
  expected,
636
636
  };
637
637
 
638
- throw Error(message, signature, values);
638
+ throw Error(createError(message, signature, values));
639
639
  }
640
640
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/test",
3
- "version": "11.2.0",
3
+ "version": "11.3.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Test runner for 🐊Putout plugins ",