nuxt-ava-e2e-unit-testing
nuxt-ava-e2e-unit-testing copied to clipboard
How to implement e2e testing with nuxtServerInit
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.