Skip to content

Commit a8bd4d2

Browse files
committed
feature: @putout/plugin-putout: replace-test-message: no report with options -> no report
1 parent edaf7d5 commit a8bd4d2

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

packages/plugin-putout/lib/replace-test-message/fixture/no-report-fix.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ test.only('lib: show-menu: no report: hide-menu', (t) => {
22
t.noReport('no-menu');
33
t.end();
44
});
5+
6+
test('menu: hide-submenu: no report: no-menu', (t) => {
7+
t.noReport('no-menu');
8+
t.end();
9+
});

packages/plugin-putout/lib/replace-test-message/fixture/no-report.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@ test.only('lib: show-menu: transform with options: hide-menu', (t) => {
22
t.noReport('no-menu');
33
t.end();
44
});
5+
6+
test('menu: hide-submenu: no report with options: no-menu', (t) => {
7+
t.noReport('no-menu');
8+
t.end();
9+
});
10+

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)(\swith options)?)/,
17+
NO_REPORT: /: (no report (after transform|with options)|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: /: (transform with options|no report after transform|no transform|report|no report)/,

0 commit comments

Comments
 (0)