How mount Vue component in Vue Test Utils with Effector scope

Viewed 15

I try mount Vue component in test with custom store, which i created with Effectors fork().

In documentation of Vue Test Utils has an example with Vuex:

const store = createStore({
  state() {
    return {
      count: 0
    }
  },
  mutations: {
    increment(state: any) {
      state.count += 1
    }
  }
})

test('vuex', async () => {
  const wrapper = mount(App, {
    global: {
      plugins: [store]
    }
  })

But in my app used Effector and i dont know how i can pass scope to component. In internet there are guides for React (for example https://www.notion.so/effector-c664bb08668f403a8c76ece470460512), but not for Vue.

0 Answers
Related