Skip to content

YH-2159: add test for hook useQueryFilterParams#1315

Open
Aleksey-Biryukov wants to merge 2 commits into
developfrom
feature/YH-2159
Open

YH-2159: add test for hook useQueryFilterParams#1315
Aleksey-Biryukov wants to merge 2 commits into
developfrom
feature/YH-2159

Conversation

@Aleksey-Biryukov

@Aleksey-Biryukov Aleksey-Biryukov commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Добавлен юнит-тест для хука useQueryFilterParams

Что сделано:

  • Создан файл useQueryFilterParams.test.ts
  • useNavigate и useLocation заменены на моки jest.fn()

Протестировано:

  • инициализация хука (начальное состояние, навигация при пустом URL)
  • onFilterChange (обновление фильтров + обновление URL)
  • onResetFilters (сброс фильтров + обновление URL)
2026-06-30_23-05-27 2026-06-30_23-02-38

@Aleksey-Biryukov Aleksey-Biryukov added review the task is currently being reviewed tests Writing tests labels Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review the task is currently being reviewed tests Writing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant