Skip to content

Nordicwebteamvue/wait-for.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wait-for

Simple CLI app to wait for a url to load.

Installation

npm install -g @kodbruket/wait-for

Usage

Wait for http://google.se to be reachable

wait-for url http://google.se

You can also wait for a string to be available before moving on, in this case we wait for the string google to be present in the response

wait-for url http://google.se --find google

By default we wait 2500ms and try 100 times before failing. You can override this with --max-retries and --timeout:

wait-for url http://google.se --max-retries 10 --timeout 1000

Example

docker-compose up -d
wait-for url http://localhost:3000 --find "my string"
npm run e2e # will be run once localhost:3000 is reachable and contains the string "my string"
docker-compose down

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published