mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
for.spec kept throwingTag registration after #713 removed its test. Reuse ThrowingTag in liquid.spec instead of IntendedRenderErrorTag. Co-authored-by: Cursor <[email protected]>
24 lines
346 B
Bash
Executable File
24 lines
346 B
Bash
Executable File
# npm run build before running this check
|
|
set -x
|
|
export CI=true
|
|
|
|
if [ ! -d dist ]; then
|
|
echo >2 'build and link liquidjs before run test.sh'
|
|
exit 1
|
|
fi
|
|
|
|
npm link
|
|
|
|
for demo in $(ls demo); do
|
|
cd demo/$demo
|
|
npm link liquidjs
|
|
|
|
if npm test; then
|
|
echo "[success] demo/$demo"
|
|
else
|
|
echo "[fail] demo/$demo"
|
|
exit 1
|
|
fi
|
|
cd -
|
|
done
|