@putout/test 15.3.1 → 15.3.2

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
@@ -598,9 +598,13 @@ test('putout: operator: filesystem: findFile: exclude', (t) => {
598
598
 
599
599
  ```js
600
600
  test('putout: operator: filesystem: writeFileContent: emoji', (t) => {
601
- const ast = parseFilesystem(['/hello/world/', '/hello/world/README.md']);
601
+ const ast = parseFilesystem([
602
+ '/hello/world/',
603
+ '/hello/world/README.md',
604
+ ]);
602
605
 
603
606
  const [filePath] = findFile(ast, 'README.md');
607
+
604
608
  writeFileContent(filePath, 'hello 🐊');
605
609
  const content = readFileContent(filePath);
606
610
 
package/bin/test.js CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import 'supertape/bin/supertape';
4
-
5
4
  import {callWhenTestsEnds} from 'supertape';
6
5
  import {whenTestsEnds} from '@putout/printer/type-checker/when-tests-ends';
7
6
 
package/lib/test.js CHANGED
@@ -484,6 +484,7 @@ function checkReport(name, message) {
484
484
  if (!isString(message) && !message) {
485
485
  const help = `☝️ Looks like you forget to pass the 'message' for 'report()' operator`;
486
486
  const source = `report(name: string, message: string): Operator`;
487
+
487
488
  const values = {
488
489
  name,
489
490
  message,
@@ -497,6 +498,7 @@ function checkProgress(name, expected) {
497
498
  if (!isString(name)) {
498
499
  const message = `☝️ Looks like you forget to pass the 'name' of a fixture for 'progress()' operator.`;
499
500
  const signature = 'await progress(name: string, expected: ExpectedProgress): Operator';
501
+
500
502
  const values = {
501
503
  name,
502
504
  expected,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/test",
3
- "version": "15.3.1",
3
+ "version": "15.3.2",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Test runner for 🐊Putout plugins ",
@@ -43,7 +43,7 @@
43
43
  "@putout/operator-json": "^3.1.0",
44
44
  "@putout/plugin-filesystem": "*",
45
45
  "currify": "^4.0.0",
46
- "montag": "^1.2.1",
46
+ "montag": "^2.0.0",
47
47
  "supertape": "^12.0.0",
48
48
  "try-catch": "^4.0.0",
49
49
  "try-to-catch": "^4.0.0"