@putout/test 15.3.1 → 15.3.3
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 +5 -1
- package/bin/test.js +0 -1
- package/lib/test.js +2 -0
- package/package.json +3 -4
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([
|
|
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
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.
|
|
3
|
+
"version": "15.3.3",
|
|
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,8 +43,8 @@
|
|
|
43
43
|
"@putout/operator-json": "^3.1.0",
|
|
44
44
|
"@putout/plugin-filesystem": "*",
|
|
45
45
|
"currify": "^4.0.0",
|
|
46
|
-
"montag": "^
|
|
47
|
-
"supertape": "^
|
|
46
|
+
"montag": "^2.0.0",
|
|
47
|
+
"supertape": "^13.0.0",
|
|
48
48
|
"try-catch": "^4.0.0",
|
|
49
49
|
"try-to-catch": "^4.0.0"
|
|
50
50
|
},
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
"@putout/plugin-variables": "*",
|
|
70
70
|
"@putout/processor-wasm": "*",
|
|
71
71
|
"eslint": "^10.0.0",
|
|
72
|
-
"eslint-plugin-n": "^17.0.0",
|
|
73
72
|
"eslint-plugin-putout": "^31.0.0",
|
|
74
73
|
"madrun": "^13.0.0",
|
|
75
74
|
"nodemon": "^3.0.1",
|