bahmutov / start-server-and-test

Starts server, waits for URL, then runs test command; when the tests end, shuts down server
MIT License
1.52k stars 91 forks source link

Hmm, not working with vuepress dev mode #36

Open bahmutov opened 6 years ago

bahmutov commented 6 years ago

Cannot seem to detect the built VuePress site, for example here

https://github.com/bahmutov/try-vuepress

$ DEBUG=wait-on npm run test:dev

> try-vuepress@1.0.0 test:dev /Users/gleb/git/try-vuepress
> start-test dev http-get://localhost:8080/try-vuepress/ cy:open

starting server using command "npm run dev"
and when url "http-get://localhost:8080/try-vuepress/" is responding
running tests using command "cy:open"

> try-vuepress@1.0.0 dev /Users/gleb/git/try-vuepress
> vuepress dev src

  VuePress dev server listening at http://localhost:8080/try-vuepress/
bahmutov commented 6 years ago

The served site uses webpack and does not respect HEAD method, but http-get should have worked