Enzyme mount error in component with store

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}>
                        <Dashboard />

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: enter image description here

what could be a problem here? Did anyone have this error before?