You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need some ones help to write a unit test for this code. I have write a test case but its not working. I can't copy and past original so I have created dummy code and pasted it.
import {useState, useEffect} from 'React';
import {useNavigate} from 'react-router-dom';
import {useSelector} from 'react-redux';
const componentName=()=>{
const navigate = useNavigate();
const {loginRes} = useSelector((state).signUp)
const [data, setData] = useState()
I need some ones help to write a unit test for this code. I have write a test case but its not working. I can't copy and past original so I have created dummy code and pasted it.
import {useState, useEffect} from 'React';
import {useNavigate} from 'react-router-dom';
import {useSelector} from 'react-redux';
const componentName=()=>{
const navigate = useNavigate();
const {loginRes} = useSelector((state).signUp)
const [data, setData] = useState()
}
export default componentName;
The text was updated successfully, but these errors were encountered: