export TAP_TIMEOUT=600

# Several tests assert created files/directories have mode 0o755/0o644, which
# assumes the standard umask 022. autopkgtest may run with umask 002, so set
# it explicitly to match upstream's expectations.
umask 022

pkgjs-install-minimal
# mkdirp is used by the test suite but is not declared in package.json, so
# pkgjs-install-minimal does not link it; link it explicitly. chmodr is not
# packaged in Debian and comes from the embedded test_modules.
[ -e node_modules/mkdirp ] || ln -s /usr/share/nodejs/mkdirp node_modules/mkdirp
cp debian/tests/fixtures/excessively-deep.tar test/fixtures/ || true
tap --disable-coverage -R tap test/*.js test/*.ts
rm -f test/fixtures/excessively-deep.tar
