@putout/test 7.0.0 → 7.0.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/lib/test.js +6 -6
- package/package.json +1 -1
package/lib/test.js
CHANGED
|
@@ -111,8 +111,8 @@ function createTest(dir, maybeOptions) {
|
|
|
111
111
|
noReportAfterTransform: noReportAfterTransform(dir, options),
|
|
112
112
|
reportWithOptions: reportWithOptions(dir, options),
|
|
113
113
|
noReportWithOptions: noReportWithOptions(dir, options),
|
|
114
|
-
reportCode: reportCode(options),
|
|
115
|
-
format: formatSave(dir, options),
|
|
114
|
+
reportCode: reportCode(options),
|
|
115
|
+
format: formatSave(dir, options),
|
|
116
116
|
formatMany: formatManySave(dir, options),
|
|
117
117
|
noFormat: noFormat(dir, options),
|
|
118
118
|
});
|
|
@@ -215,11 +215,11 @@ const formatMany = currify((dir, options, t) => async (formatter, names, formatt
|
|
|
215
215
|
};
|
|
216
216
|
});
|
|
217
217
|
|
|
218
|
-
const formatManySave = currify((dir, options, t) => async (formatter, names,
|
|
218
|
+
const formatManySave = currify((dir, options, t) => async (formatter, names, formatterOptions = {}) => {
|
|
219
219
|
const runFormat = await formatMany(dir, options, t);
|
|
220
220
|
|
|
221
221
|
if (!isUpdate())
|
|
222
|
-
return await runFormat(formatter, names,
|
|
222
|
+
return await runFormat(formatter, names, formatterOptions);
|
|
223
223
|
|
|
224
224
|
const {existsSync, writeFileSync} = global.__putout_test_fs;
|
|
225
225
|
|
|
@@ -239,11 +239,11 @@ const formatManySave = currify((dir, options, t) => async (formatter, names, opt
|
|
|
239
239
|
return t.pass('fixed fixture updated');
|
|
240
240
|
});
|
|
241
241
|
|
|
242
|
-
const formatSave = currify((dir, options, t) => async (formatter, name,
|
|
242
|
+
const formatSave = currify((dir, options, t) => async (formatter, name, formatterOptions = {}) => {
|
|
243
243
|
const runFormat = format(dir, options, t);
|
|
244
244
|
|
|
245
245
|
if (!isUpdate())
|
|
246
|
-
return await runFormat(formatter, name,
|
|
246
|
+
return await runFormat(formatter, name, formatterOptions);
|
|
247
247
|
|
|
248
248
|
const {existsSync, writeFileSync} = global.__putout_test_fs;
|
|
249
249
|
|