Skip to content

Commit 9d28a8a

Browse files
committed
test: Group related symbols together in jest.custom_matchers.setup.ts
1 parent 339452c commit 9d28a8a

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

tests/CustomMatchers/jest.custom_matchers.setup.ts

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,36 @@ import {
1010
toMatchTaskWithPath,
1111
toMatchTaskWithStatus,
1212
} from './CustomMatchersForFilters';
13+
expect.extend({
14+
toBeValid,
15+
toHaveExplanation,
16+
toMatchTask,
17+
toMatchTaskFromLine,
18+
toMatchTaskWithHeading,
19+
toMatchTaskWithPath,
20+
toMatchTaskWithStatus,
21+
});
1322

23+
// ---------------------------------------------------------------------
24+
// CustomMatchersForGrouping
25+
// ---------------------------------------------------------------------
1426
import { toSupportGroupingWithProperty } from './CustomMatchersForGrouping';
27+
expect.extend({
28+
toSupportGroupingWithProperty,
29+
});
1530

31+
// ---------------------------------------------------------------------
32+
// CustomMatchersForTaskBuilder
33+
// ---------------------------------------------------------------------
1634
import { toBeIdenticalTo } from './CustomMatchersForTaskBuilder';
1735
expect.extend({
1836
toBeIdenticalTo,
1937
});
2038

39+
// ---------------------------------------------------------------------
40+
// CustomMatchersForTaskBuilder
41+
// ---------------------------------------------------------------------
2142
import { toMatchTaskDetails } from './CustomMatchersForTaskSerializer';
22-
2343
expect.extend({
24-
toBeValid,
25-
toHaveExplanation,
26-
toMatchTask,
27-
toMatchTaskFromLine,
28-
toMatchTaskWithHeading,
29-
toMatchTaskWithPath,
30-
toMatchTaskWithStatus,
3144
toMatchTaskDetails,
32-
toSupportGroupingWithProperty,
3345
});

0 commit comments

Comments
 (0)