fix: enhance useImport tests with improved structure and error handling

- Introduced a new wrapper function for query client to facilitate testing.
- Added comprehensive tests for upload, commit, and cancel operations.
- Improved error handling in tests to capture and assert error states.
- Enhanced session management and state reset functionality in tests.
- Implemented polling behavior tests for import status and preview queries.
- Ensured that upload previews are prioritized over status query previews.
- Validated cache invalidation and state management after commit and cancel actions.
This commit is contained in:
GitHub Actions
2026-01-31 07:30:41 +00:00
parent 99349e007a
commit 2ecc261960
6 changed files with 1651 additions and 608 deletions

File diff suppressed because it is too large Load Diff