Verify BackstopJS installation with a Sanity Test
masterTo check if BackstopJS can install and run correctly in your current environment (requires Node.js 8+), run the following command sequence. This creates a temporary directory, installs the package locally, and executes the init, reference, and test commands.
Standard Sanity Test:
mkdir backstopSanityTest; cd backstopSanityTest; mkdir node_modules; npm install backstopjs; ./node_modules/.bin/backstop init; ./node_modules/.bin/backstop reference; ./node_modules/.bin/backstop testSanity Test using Docker:
mkdir backstopSanityTest; cd backstopSanityTest; mkdir node_modules; npm install backstopjs; ./node_modules/.bin/backstop init; ./node_modules/.bin/backstop reference --docker; ./node_modules/.bin/backstop test --dockermkdir backstopSanityTest; cd backstopSanityTest; mkdir node_modules; npm install backstopjs; ./node_modules/.bin/backstop init; ./node_modules/.bin/backstop reference; ./node_modules/.bin/backstop test