Home

Awesome

visual-regression-testing-jest-chromeless

Visual regression testing using Jest, Chromeless and AWS Lambda.

Blogpost: https://novemberfive.co/blog/visual-regression-testing-jest-chromeless-lambda/

Requirements

Getting started

  1. Clone this repository
  2. Run yarn
  3. Build project using yarn build

Run tests locally

Run tests locally in headless-mode

alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
chrome --remote-debugging-port=9222 --disable-gpu --headless

Run tests remote on AWS

CHROMELESS_REMOTE_URL=https://xxxxxxxxxxx.execute-api.eu-central-1.amazonaws.com/dev/
CHROMELESS_API_KEY=YOUR_AWS_API_KEY