score:1

i think it's because you have a html form, not just an arbitrary submit function. try identifying the form, eg. <form id='form'> and testing it like so:

const form = wrapper.find('#form').at(0);
form.simulate('submit');

edit you can also try:

        wrapper.update();

        settimeout(function () {
            expect(...).tobe(...);
            done();
        }, 500);

and don't forget to pass done as your test case function's argument.


Related Query

More Query from same tag