Skip to content

Commit c249618

Browse files
committed
feature: @putout/plugin-putout: replace-test-message: transformWithOptions -> noReport
1 parent e84c6ea commit c249618

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test.only('lib: show-menu: no report: hide-menu', (t) => {
2+
t.noReport('no-menu');
3+
t.end();
4+
});
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test.only('lib: show-menu: transform with options: hide-menu', (t) => {
2+
t.noReport('no-menu');
3+
t.end();
4+
});

packages/plugin-putout/lib/replace-test-message/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const fix = ({path, incorrect, correct}) => {
1414

1515
const INCORRECT = {
1616
REPORT: /: (no report after transform|no report|transform|no transform)/,
17-
NO_REPORT: /: (no report after transform|report|transform|no transform)/,
17+
NO_REPORT: /: (no report after transform|report|(transform|no transform)(\swith options)?)/,
1818
NO_REPORT_AFTER_TRANSFORM: /: (report|transform|no transform|no report)/,
1919
NO_REPORT_WITH_OPTIONS: /: (no report after transform(\swith options)?|report|transform|no transform|no report)/,
2020
TRANSFORM: /: (no report after transform|no transform|report|no report)/,

packages/plugin-putout/lib/replace-test-message/index.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,8 @@ test('plugin-putout: replace-test-message: transform: no-report-with-options', (
7171
t.transform('no-report-with-options');
7272
t.end();
7373
});
74+
75+
test('plugin-putout: replace-test-message: transform: no-report', (t) => {
76+
t.transform('no-report');
77+
t.end();
78+
});

0 commit comments

Comments
 (0)