fix: prevent test pollution by ensuring inputs are cloned (#499)

Always create a new object copy of defaultInputs to prevent mutations from affecting other tests.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Ashwin Bhat
2025-08-27 17:14:28 -07:00
committed by GitHub
parent ef8c0a650e
commit f0925925f1

View File

@@ -72,7 +72,7 @@ export const createMockAutomationContext = (
const mergedInputs = overrides.inputs
? { ...defaultInputs, ...overrides.inputs }
: defaultInputs;
: { ...defaultInputs };
return { ...baseContext, ...overrides, inputs: mergedInputs };
};