diff --git a/test/acceptance/fake-server.ts b/test/acceptance/fake-server.ts index cf4c07fc4f..cfa83facc6 100644 --- a/test/acceptance/fake-server.ts +++ b/test/acceptance/fake-server.ts @@ -9,6 +9,7 @@ const featureFlagDefaults = (): Map => { return new Map([ ['cliFailFast', false], ['iacTerraformVarSupport', false], + ['iacCliOutput', false], ]); }; diff --git a/test/jest/unit/lib/formatters/iac-output/index.spec.ts b/test/jest/unit/lib/formatters/iac-output/index.spec.ts index 3ce3f3e2b7..9c12152eef 100644 --- a/test/jest/unit/lib/formatters/iac-output/index.spec.ts +++ b/test/jest/unit/lib/formatters/iac-output/index.spec.ts @@ -53,12 +53,18 @@ describe('IaC Output Formatter', () => { .spyOn(iacOutputV2, 'getIacDisplayedOutput') .mockImplementationOnce(jest.fn()); + const testIacTestResponse = {} as IacTestResponse; + const testTestedInfoTest = 'test-tested-info-text'; + const testMeta = 'test-meta'; + const testPrefix = 'test-prefix'; + const testIsNewIacOutputSupported = true; + const args: Parameters = [ - {} as IacTestResponse, - 'test-tested-info-text', - 'test-meta', - 'test-prefix', - true, + testIacTestResponse, + testTestedInfoTest, + testMeta, + testPrefix, + testIsNewIacOutputSupported, ]; // Act @@ -68,9 +74,10 @@ describe('IaC Output Formatter', () => { expect(result).toBeUndefined(); expect(getIacDisplayedOutputV1Spy).not.toHaveBeenCalled(); expect(getIacDisplayedOutputV2Spy).toHaveBeenCalledTimes(1); - expect([...getIacDisplayedOutputV2Spy.mock.calls[0]]).toStrictEqual( - args.slice(0, args.length - 1), - ); + expect([...getIacDisplayedOutputV2Spy.mock.calls[0]]).toStrictEqual([ + testIacTestResponse, + testPrefix, + ]); }); }); });