Files
gerrit/polygerrit-ui/app/polylint_test.sh
Dmitrii Filippov cce4b10c3b Use typescript output to run tests
This change updates build rules to run tests on top of compiled
typescript code. Additionally, it includes converted base-url-behavior.ts
file to ensure that new changes work correctly with .ts files.

Change-Id: I860b78c664eba88713fe1291704639e1736140cc
2020-06-30 18:35:43 +02:00

14 lines
357 B
Bash
Executable File

#!/bin/bash
set -ex
DIR=$(pwd)
ln -s $RUNFILES_DIR/ui_npm/node_modules $TEST_TMPDIR/node_modules
cp $2 $TEST_TMPDIR/polymer.json
cp -R -L polygerrit-ui/app/_pg_ts_out/* $TEST_TMPDIR
#Can't use --root with polymer.json - see https://github.com/Polymer/tools/issues/2616
#Change current directory to the root folder
cd $TEST_TMPDIR/
$DIR/$1 lint --verbose