有没有办法在 react-testing -library 中测试组件之前初始化多个原子状态?

Is there a way to initialize multiple atom states before testing a component in react-testing -library?

现在我正在初始化单个原子状态如下

<RecoilRoot initializeState={(snap: any): any => snap.set( oneTimeData, onetimeParameter)}>

我正在尝试向上面的代码添加另一个原子 errors

<RecoilRoot initializeState={(snap: any): any => snap.set( (oneTimeData, onetimeParameter), (errors, errorsParameter) }>

这是正确的用法吗?

我提供此编辑:

<RecoilRoot initializeState={(snap: any): any => {snap.set( oneTimeData, onetimeParameter);
snap.set(errors, errorsParameter);}}>