diff --git a/lib/config/presets/internal/group.spec.ts b/lib/config/presets/internal/group.spec.ts new file mode 100644 index 00000000000000..226ddcb37cb5f3 --- /dev/null +++ b/lib/config/presets/internal/group.spec.ts @@ -0,0 +1,13 @@ +import { presets } from './group'; + +const exceptions = new Set(['monorepos', 'recommended']); + +describe('config/presets/internal/group', () => { + const presetNames = Object.keys(presets).filter( + (name) => !exceptions.has(name), + ); + + it.each(presetNames)('group:%s contains packageRules', (name: string) => { + expect(presets[name]).toHaveProperty('packageRules'); + }); +}); diff --git a/lib/config/presets/internal/group.ts b/lib/config/presets/internal/group.ts index 2957b595ef3a81..d0735ef136ada9 100644 --- a/lib/config/presets/internal/group.ts +++ b/lib/config/presets/internal/group.ts @@ -111,14 +111,19 @@ const staticGroups = { }, fusionjs: { description: 'Group Fusion.js packages together.', - matchPackageNames: [ - 'fusion-cli', - 'fusion-core', - 'fusion-test-utils', - 'fusion-tokens', - 'fusion-plugin-**', - 'fusion-react**', - 'fusion-apollo**', + packageRules: [ + { + groupName: 'Fusion.js packages', + matchPackageNames: [ + 'fusion-cli', + 'fusion-core', + 'fusion-test-utils', + 'fusion-tokens', + 'fusion-plugin-**', + 'fusion-react**', + 'fusion-apollo**', + ], + }, ], }, githubArtifactActions: {