refactor: update test files to consistently use parse function for YAML parsing

This commit is contained in:
Mauricio Siu
2025-09-21 02:35:36 -06:00
parent fedc88eb40
commit 3d7dc82232
@@ -77,7 +77,7 @@ configs:
`) as ComposeSpecification; `) as ComposeSpecification;
test("Add suffix to all configs in root and services", () => { test("Add suffix to all configs in root and services", () => {
const composeData = load(composeFileCombinedConfigs) as ComposeSpecification; const composeData = parse(composeFileCombinedConfigs) as ComposeSpecification;
const suffix = "testhash"; const suffix = "testhash";
@@ -159,7 +159,7 @@ configs:
`) as ComposeSpecification; `) as ComposeSpecification;
test("Add suffix to configs with environment and external", () => { test("Add suffix to configs with environment and external", () => {
const composeData = load( const composeData = parse(
composeFileWithEnvAndExternal, composeFileWithEnvAndExternal,
) as ComposeSpecification; ) as ComposeSpecification;
@@ -231,7 +231,7 @@ configs:
`) as ComposeSpecification; `) as ComposeSpecification;
test("Add suffix to configs with template driver and labels", () => { test("Add suffix to configs with template driver and labels", () => {
const composeData = load( const composeData = parse(
composeFileWithTemplateDriverAndLabels, composeFileWithTemplateDriverAndLabels,
) as ComposeSpecification; ) as ComposeSpecification;