Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement e2e testing with nuxtServerInit #18

Open
guesskingf opened this issue Aug 5, 2019 · 0 comments
Open

How to implement e2e testing with nuxtServerInit #18

guesskingf opened this issue Aug 5, 2019 · 0 comments

Comments

@guesskingf
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant