Expected number of calls: >= 1 Received number of calls: 0
问题 I am learning reactjs form with hooks, now I would like to test form on submit using jest and enzyme. here is my login component. import React from 'react' function Login() { const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const handleSubmit = async (e) => { e.preventDefault(); // ....api calLS } return ( <div> <form onSubmit={handleSubmit} className="login"> <input type="email" id="email-input" name="email" value={email} onChange={e => setEmail(e.target