Files
renovate/lib/modules/manager/github-actions/known-actions/java-version-dynamic.spec.ts
Jamie Tanna 2b84f8c13d refactor(manager/github-actions): restructure directory for known-actions (#46248)
As noted in #46242, the `known-actions.ts` file was getting a bit big.

Where we have dynamic extractions, using `transform`, we split these
into a `<datasource>-dynamic.ts` file.

Where we have multiple packages extracted from the same Action, we use
`multiple.ts`.

Per suggestion from Sebastian, we can break this down by the datasource
used by the Action's inputs.

We can also try to enforce the structure of the directories by adding a
test in each file.

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
2026-09-16 11:40:35 +00:00

11 lines
449 B
TypeScript

import { JavaVersionDatasource } from '../../../datasource/java-version/index.ts';
import { javaVersionDynamicActions } from './java-version-dynamic.ts';
describe('modules/manager/github-actions/known-actions/java-version-dynamic', () => {
it('uses the java-version datasource for every entry', () => {
for (const cfg of Object.values(javaVersionDynamicActions)) {
expect(cfg.datasource).toBe(JavaVersionDatasource.id);
}
});
});