Skip to content

Commit

Permalink
it.each
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Dec 14, 2024
1 parent 41d6b67 commit 77db0d3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/config/presets/internal/group.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import { presets } from './group';
const exceptions = new Set(['monorepos', 'recommended']);

describe('config/presets/internal/group', () => {
it('presets should have right name', () => {
// Check that each preset contains a `packageRules` key, except exceptions
for (const name of Object.keys(presets).filter(
(name) => !exceptions.has(name),
)) {
expect(presets[name]).toHaveProperty('packageRules');
}
const presetNames = Object.keys(presets).filter(
(name) => !exceptions.has(name),
);
it.each(presetNames)('group:%s contains packageRules', (name: string) => {

Check failure on line 9 in lib/config/presets/internal/group.spec.ts

View workflow job for this annotation

GitHub Actions / lint-eslint

Expected blank line before this statement.
expect(presets[name]).toHaveProperty('packageRules');
});
});

0 comments on commit 77db0d3

Please sign in to comment.