#!/bin/sh # Runs every test. No dependencies beyond node; render.test.js additionally # wants a headless browser and skips itself without one. set -eu cd "$(dirname "$0")" echo "— syntax —" for f in ../Scripts/*.js ../Assets/preview.js ./*.js; do node --check "$f"; done python3 -c "import json; json.load(open('../extension.json'))" echo "ok" for test in generate close render; do echo "— $test —" node "$test.test.js" done