const Test = () => { const { testid } = useParams(); const targetQuestions = questions[testid]; const [answers, setAnswers] = useState(Array.from({ length: targetQuestions.length })); const navigate = useNavigate(); const { userId, nickname } = useUserInfo(); const handleAnswers = (idx, selected) => { setAnswers([...answers].with(idx, selected)); }; const getMBTIRe..