给出类似的应用程序:
<TestEnvSetup>
<App />
</TestEnvSetup>
和app.js
<UserForm>
<DatePicker />
<AutocompleteField />
<MoreFields />
</UserForm>
我知道我需要mount(<TestEnvSetup><App /></TestEnvSetup>)
,但是如何遍历组件以比较状态,交互等?例如,确保AutocompleteField在应用程序的状态上发出一些标志。或者我在考虑这个错误?