我想在单元测试中使用 jest 酶覆盖 MultiSelect 组件,特别是 onSelectChange 部分......任何线索都会有所帮助 '''
<Form.Label>Country </Form.Label >
<MultiSelect
options={countryoptions}
selected={country}
disableSearch={false}
onSelectChange={selectCountry=>{this.setState({country:selectCountry});
return null;
}}
/>
'''