bake: fix undefined output property

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-03-26 19:26:59 +02:00
parent d0929eeb16
commit a7448298e0
7 changed files with 89 additions and 19 deletions

View File

@@ -31,9 +31,14 @@ describe('parseDefinitions', () => {
// prettier-ignore
test.each([
[
[path.join(fixturesDir, 'bake.hcl')],
[path.join(fixturesDir, 'bake-01.hcl')],
['validate'],
path.join(fixturesDir, 'bake-validate.json')
path.join(fixturesDir, 'bake-01-validate.json')
],
[
[path.join(fixturesDir, 'bake-02.hcl')],
['build'],
path.join(fixturesDir, 'bake-02-build.json')
]
])('given %p', async (sources: string[], targets: string[], out: string) => {
const bake = new Bake();
@@ -57,6 +62,16 @@ describe('hasLocalExporter', () => {
},
false
],
[
{
"target": {
"build": {
"target": "build"
},
}
},
false
],
[
{
"target": {