#!/bin/bash

if [ $NODE_ENV == 'development' ]
then
  docker run \
    -d \
    -v $(pwd):/app \
    -w="/app" \
    --rm \
    --shm-size 1G \
    alekzonder/puppeteer:0.13.0 \
    npm i babel-cli && \
    babel-node ./test/visual-regression.js
else
    babel-node $(pwd)/test/visual-regression.js
fi

#!/bin/bash

if [ $NODE_ENV == 'development' ]
then
  docker run \
    -d \
    -v $(pwd):/app \
    -w="/app" \
    --rm \
    --shm-size 1G \
    alekzonder/puppeteer:0.13.0 \
    npm i babel-cli && \
    babel-node ./test/visual-regression.js
else
    NODE_ENV=test babel-node $(pwd)/test/visual-regression.js
fi

Set NODE_ENV to test when testing for visual regression
Set NODE_ENV to test when testing for visual regression
