@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 +1 -4
- package/lib/eslint/eslint.mjs +3 -2
- package/lib/test.js +1 -1
- package/package.json +1 -1
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
|
});
|
package/lib/eslint/eslint.mjs
CHANGED
|
@@ -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(
|
|
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