Skip to content

Commit c5a5896

Browse files
committed
Forward failed cases description to tests
1 parent c16bfaf commit c5a5896

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/external/test-helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copied from https://github.com/angular-eslint/angular-eslint/blob/main/packages/utils/src/convert-annotated-source-to-failure-case.ts
2+
// With https://github.com/angular-eslint/angular-eslint/pull/1118
23

34
import type { TSESLint } from "@typescript-eslint/utils";
45

@@ -71,8 +72,6 @@ type SingleErrorOptions<TMessageIds extends string> = BaseErrorOptions &
7172
* data: { prefixes: '"ng"' },
7273
* }),
7374
* ```
74-
*
75-
* NOTE: The description is purely for documentation purposes. It is not used in the test.
7675
*/
7776
export function convertAnnotatedSourceToFailureCase<TMessageIds extends string>(
7877
errorOptions: SingleErrorOptions<TMessageIds>
@@ -124,6 +123,7 @@ export function convertAnnotatedSourceToFailureCase<TMessageIds extends string>(
124123
);
125124

126125
return {
126+
name: errorOptions.description,
127127
code: parsedSource,
128128
filename: errorOptions.filename,
129129
options: errorOptions.options ?? [],

0 commit comments

Comments
 (0)