anggoran
anggoran6mo ago

Redirection in Testing is Always Valued False

This is my first test in full stack framework, especially for Fresh. I'm not sure why the redirected is always false in testing, while if I see in the devtools it's marked as redirect. Is there anything that missed?
No description
No description
2 Replies
Deno AI Helper
Deno AI Helper6mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the information you've provided, it seems like you're encountering an issue with testing redirection in the Fresh framework. Without seeing the actual code, it's difficult to provide a precise solution. However, if you're checking the redirected property on a Response object in your tests, make sure that you're simulating the redirection correctly and that the Response object is being created with the appropriate properties. Please note that this advice is not based on the Deno documentation, and I would recommend double-checking the accuracy of the advice given. If you continue to experience issues, you might want to look into the Fresh framework's documentation or source code for more insights on how redirection is handled, or reach out to the community for further assistance.
anggoran
anggoran6mo ago
I guess it's how it works on server compared to browser (?) like the follow redirect behavior in request is not automatically redirecting when tested outside browser