Begin setting up puppeteer runs without snapshots

This commit is contained in:
Tessa Kelly 2022-04-14 09:05:20 -07:00
parent 0feda5359d
commit b09e6d6158
2 changed files with 6 additions and 1 deletions

View File

@ -116,7 +116,9 @@ main = do
percyToken <- getEnv "PERCY_TOKEN"
case percyToken of
Nothing -> do
writeFileChanged out "Skipped running Percy tests, PERCY_TOKEN not set."
writeFileChanged out "PERCY_TOKEN not set, so skipping visual diff testing."
need ["log/npm-install.txt", "log/public.txt"]
cmd (WithStdout True) (FileStdout out) "script/local-test-run.sh"
Just _ -> do
need ["log/npm-install.txt", "log/public.txt"]
cmd (WithStdout True) (FileStdout out) "script/percy-tests.sh"

3
script/local-test-run.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
set -euo pipefail
npx mocha script/percy-tests.js --exit