mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(codebase audit): preserve cleanup without regressions
Fix codebase audit regressions while preserving UI/UX behavior and adding review-driven hardening.
This commit is contained in:
@@ -233,6 +233,7 @@ vi.mock('../../../hooks/use-state-string', () => ({
|
||||
|
||||
vi.mock('../../../hooks/use-window-width', () => ({
|
||||
default: () => testState.windowWidth,
|
||||
useIsMobileBreakpoint: () => testState.windowWidth < 640,
|
||||
}));
|
||||
|
||||
vi.mock('../../../stores/use-catalog-style-store', () => ({
|
||||
@@ -250,9 +251,10 @@ vi.mock('../../../stores/use-feed-reset-store', () => ({
|
||||
}));
|
||||
|
||||
vi.mock('../../../stores/use-sorting-store', () => ({
|
||||
default: () => ({
|
||||
sortType: testState.sortType,
|
||||
}),
|
||||
default: (selector?: (state: { sortType: typeof testState.sortType }) => unknown) => {
|
||||
const state = { sortType: testState.sortType };
|
||||
return selector ? selector(state) : state;
|
||||
},
|
||||
}));
|
||||
|
||||
vi.mock('../../../stores/use-catalog-filters-store', () => ({
|
||||
|
||||
Reference in New Issue
Block a user