Skip to content

Commit ae9b186

Browse files
committed
feature: @putout/plugin-putout: apply-fixture-name-to-message: noReportAfterTransform
1 parent e854f65 commit ae9b186

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test('compiler: convert-dec-to-hex: transform: hello', (t) => {
2+
t.noReportAfterTransform('hello');
3+
t.end();
4+
});
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test('compiler: convert-dec-to-hex: transform', (t) => {
2+
t.noReportAfterTransform('hello');
3+
t.end();
4+
});

packages/plugin-putout/lib/apply-fixture-name-to-message/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const report = () => `Apply 'fixture' name to 'message'`;
2020

2121
export const match = () => ({
2222
't.noReport(__a)': check,
23+
't.noReportAfterTransform(__a)': check,
2324
't.report(__a, __b)': check,
2425
't.transform(__a)': check,
2526
't.transform(__a, __b)': check,
@@ -32,6 +33,7 @@ export const replace = () => ({
3233
't.transform(__a)': transform,
3334
't.transform(__a, __b)': transform,
3435
't.noTransform(__a)': transform,
36+
't.noReportAfterTransform(__a)': transform,
3537
});
3638

3739
const isTest = (path) => compare(path, 'test(__a, (t) => __body)', {

packages/plugin-putout/lib/apply-fixture-name-to-message/index.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@ test('putout: apply-fixture-name-to-message: options', (t) => {
5151
t.transform('options');
5252
t.end();
5353
});
54+
55+
test('putout: apply-fixture-name-to-message: no-report-after-transform', (t) => {
56+
t.transform('no-report-after-transform');
57+
t.end();
58+
});

0 commit comments

Comments
 (0)