# regenerate the sources that scripts/build.js derives from package.json
# and src/well-known/services.json (absent from the upstream tarball)
node scripts/build.js --generate-only
if test "$NETWORK_TEST" = "yes"; then
	ARG=
else
	ARG=-v
fi
node --import tsx --test --test-concurrency=1 \
  `find test \( -name '*-test.ts' -o -name '*.test.ts' \) | grep $ARG -f debian/tests/network-tests`
