Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
test(threadlist): stub useParams in react-router mock
Akarshan Biswas32d63406e3f1
diff --git a/web-app/src/containers/__tests__/ThreadList.test.tsx b/web-app/src/containers/__tests__/ThreadList.test.tsxindex ef3e0b881..793964798 100644--- a/web-app/src/containers/__tests__/ThreadList.test.tsx+++ b/web-app/src/containers/__tests__/ThreadList.test.tsx@@ -9,6 +9,8 @@ vi.mock('@tanstack/react-router', () => ({{children}</a>),+ useParams: ({ select }: any = {}) =>+ select ? select({ threadId: undefined }) : { threadId: undefined },}))vi.mock('@/i18n/react-i18next-compat', () => ({