Comfy-Org / Comfy-Org/ComfyUI_frontend

refactor: extract shared test fixtures from workflow persistence tests

Open
#9,775 0 comments 0 reactions 1 assignee Claimed by @dante01yoon View on GitHub
area:testing developer experience
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

## Summary

`useWorkflowPersistenceV2.test.ts` and the V1 persistence test file share nearly identical mock setup (settings, toast, i18n, workflowService, app, api, etc.). Extract shared test fixtures to reduce boilerplate.

## Context

Raised during review of #9318 by @christian-byrne.

## Scope

- Extract common mock declarations (settingStore, toast, i18n, workflowService, app graph/api mocks) into a shared test helper
- Update both V1 and V2 persistence test files to use the shared fixtures

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-9775-refactor-extract-shared-test-fixtures-from-workflow-persistence-tests-3216d73d36508172a3cdccdc9a8182bf) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.