@putout/test 4.3.0 → 4.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
@@ -266,6 +266,12 @@ const test = createTest(import.meta.url);
266
266
 
267
267
  ### `process(filename [, config])`
268
268
 
269
+ Works in similar to [transform](#transformfilename--output-plugins) way:
270
+
271
+ - ✅ reads `operator-linebreak.js`;
272
+ - ✅ transforms it;
273
+ - ✅ checks that transformed is equal to `operator-linebreak-fix.js`;
274
+
269
275
  Example:
270
276
 
271
277
  ```js
package/lib/test.js CHANGED
@@ -409,11 +409,15 @@ function preTest(test, plugin) {
409
409
  match,
410
410
  }] = entries(plugin).pop();
411
411
 
412
+ const options = {
413
+ checkDuplicates: false,
414
+ };
415
+
412
416
  if (rules) {
413
417
  test(`${name}: rules is an object`, (t) => {
414
418
  t.equal(typeof rules, 'object', 'should export "rules" object');
415
419
  t.end();
416
- }, {checkDuplicates: false});
420
+ }, options);
417
421
 
418
422
  const entries = Object.entries(rules);
419
423
  for (const [entryName, plugin] of entries) {
@@ -425,10 +429,6 @@ function preTest(test, plugin) {
425
429
  return;
426
430
  }
427
431
 
428
- const options = {
429
- checkDuplicates: false,
430
- };
431
-
432
432
  test(`${name}: report: is function`, (t) => {
433
433
  t.equal(typeof report, 'function', 'should export "report" function');
434
434
  t.end();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/test",
3
- "version": "4.3.0",
3
+ "version": "4.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 ",