mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 07:30:11 +00:00
## Summary Replace spread operators with Object.assign() to fix 3 no-misused-spread lint warnings in test utilities and test files. ## Changes - **What**: Replaced spread operators with Object.assign() in createMockFileList and mock node creation functions to avoid spreading arrays into objects and class instances that could lose prototypes. Simplified BypassButton.test.ts by removing redundant type annotations. - **Breaking**: None ## Review Focus Type safety is preserved without using weak TypeScript patterns (no `any`, `as unknown as`, or unnecessary casts). ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8318-fix-resolve-no-misused-spread-lint-warnings-in-test-files-2f46d73d365081aca3f6cf208556d492) by [Unito](https://www.unito.io)