nuxt-ava-e2e-unit-testing icon indicating copy to clipboard operation
nuxt-ava-e2e-unit-testing copied to clipboard

How to implement e2e testing with nuxtServerInit

Open guesskingf opened this issue 6 years ago • 0 comments

I'm new about AVAJS and testing. So forgive me about below question. How can I implement the case of I have axios get function in my store INDEX in nuntServerInit. I've try to mock this function

actions = {
    nuxtServerInit: async () => true,
  };

but it seems not working, still called axios. SO what shall I do? May I get any help here.

guesskingf avatar Aug 05 '19 08:08 guesskingf