A
A
Alexey Yarkov2018-04-04 18:47:55
JavaScript
Alexey Yarkov, 2018-04-04 18:47:55

How to run nightwatch in watch mode?

There is an application on Vue.js + SSR . For e2e tests we use nightwatch . I rummaged through the configs and did not find anywhere how to start nightwatch in watch mode.
Now, at startup, the dev server is raised, nightwatch is launched , it goes through and kills the dev server.
And you need to make it hang in the processes and follow the changes in the folder test/e2e/specs and src .
Maybe someone solved this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Reshetnikov, 2018-04-04
@yarkov

The first thing to do is to use one of the file watchers , which will cause nightwatch to restart when the files get updated.

  • https://github.com/remy/nodemon
  • https://github.com/Axosoft/nsfw
  • https://github.com/paulmillr/chokidar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question