@putout/test 6.3.1 → 6.4.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
@@ -323,7 +323,7 @@ test('test: eslint: transform', async ({process}) => {
323
323
  });
324
324
  ```
325
325
 
326
- ### `noProcess(filename)`
326
+ ### `noProcess(filename [, overrides])`
327
327
 
328
328
  Check that filename would not be processed.
329
329
 
@@ -333,6 +333,16 @@ Example:
333
333
  test('test: eslint: noProcess', async ({noProcess}) => {
334
334
  await noProcess('operator-linebreak-fix');
335
335
  });
336
+
337
+ test('test: eslint: noProcess', async ({noProcess}) => {
338
+ await noProcess('operator-linebreak-fix', {
339
+ rules: {
340
+ 'putout/putout': ['error', {
341
+ printer: 'putout',
342
+ }],
343
+ },
344
+ });
345
+ });
336
346
  ```
337
347
 
338
348
  ### `comparePlaces(filename, places[, overrides])`
@@ -90,15 +90,19 @@ export const createTest = (url, plugins = {}) => {
90
90
 
91
91
  return operator.equal(source, fixture);
92
92
  },
93
- noProcess: (operator) => async (name) => {
93
+ noProcess: (operator) => async (name, overrides) => {
94
94
  const full = join(fixtureDir, name);
95
95
  const [resolvedName, code] = await read(full);
96
96
  const fix = true;
97
97
 
98
98
  const [source] = await eslint({
99
99
  name: resolvedName,
100
- config,
100
+ config: {
101
+ ...config,
102
+ ...overrides,
103
+ },
101
104
  code,
105
+ putout: true,
102
106
  fix,
103
107
  });
104
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/test",
3
- "version": "6.3.1",
3
+ "version": "6.4.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 ",