Skip to content

How to implement e2e testing with nuxtServerInit #18

@guesskingf

Description

@guesskingf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions