We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e392533 commit a641236Copy full SHA for a641236
packages/plugin-eslint/src/lib/meta/groups.unit.test.ts
@@ -288,14 +288,22 @@ describe('groupsFromCustomConfig', () => {
288
});
289
290
it('should log a warning when some of custom group rules are invalid', () => {
291
- groupsFromCustomConfig(eslintRules, [
+ expect(
292
+ groupsFromCustomConfig(eslintRules, [
293
+ {
294
+ slug: 'custom-group',
295
+ title: 'Custom Group',
296
+ rules: {
297
+ 'react/jsx-key': 3,
298
+ 'invalid-rule': 3,
299
+ },
300
301
+ ]),
302
+ ).toEqual<Group[]>([
303
{
304
slug: 'custom-group',
305
title: 'Custom Group',
- rules: {
- 'react/jsx-key': 3,
- 'invalid-rule': 3,
- },
306
+ refs: [{ slug: 'react-jsx-key', weight: 3 }],
307
},
308
]);
309
expect(ui()).toHaveLogged(
0 commit comments