#!/bin/sh
set -e
# Upstream ships only browser tests (test/webtest-*.ts) driven by pm-runtests,
# which Debian does not ship, so run a real smoke test against the installed
# package instead: it drives an EditorView under jsdom and asserts on the
# resulting behaviour.
NODE_PATH=/usr/share/nodejs node debian/tests/pkg-js/smoke.cjs
