Skip to content

Commit

Permalink
test(docker-compose): parse templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Sep 5, 2024
1 parent 2b2017b commit 712aeda
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/modules/manager/docker-compose/extract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,21 @@ describe('modules/manager/docker-compose/extract', () => {
],
});
});

it('extracts image of templated compose file', () => {
const res = extractPackageFile(
`
version: "3"
services:
nginx:
image: quay.io/nginx:0.0.1
envrionment:
{{ services['nginx']['env'] }}
`,
'',
{},
);
expect(res?.deps).toHaveLength(1);
});
});
});

0 comments on commit 712aeda

Please sign in to comment.