feat(test): add functionality for drill, hard test module testing

This commit is contained in:
shafin-r
2026-02-07 15:28:43 +06:00
parent 903653a212
commit 02419678b7
9 changed files with 378 additions and 52 deletions

View File

@ -13,6 +13,7 @@ interface ExamConfigState {
setQuestionCount: (count: number) => void;
storeDuration: (minutes: number) => void;
setMode: (mode: ExamMode) => void;
setSection: (section: string) => void;
clearPayload: () => void;
}
@ -37,6 +38,13 @@ export const useExamConfigStore = create<ExamConfigState>()(
topic_ids,
} as StartExamPayload,
}),
setSection: (section) =>
set({
payload: {
...(get().payload ?? {}),
section,
} as StartExamPayload,
}),
setDifficulty: (difficulty) =>
set({