I started testing parent component, the testing section looks like this:
configure({ adapter: new Adapter() });
const mockStore = configureMockStore();
const store = mockStore();
describe("test", () => {
it("test", () => {
const wrapper = mount(
<Provider store={store}>
<RecoilRoot>
<Dashboard />
</RecoilRoot>
</Provider>
);
});
});
I had to add <RecoilRoot>
inside because I am using atoms inside component.The problem is I get this weird error after trying to run it:
what could be a problem here? Did anyone have this error before?
Aucun commentaire:
Enregistrer un commentaire