#! /bin/sh
cat $1 > test-center/test.ts
cd test-center
if NPM_CONFIG_UPDATE_NOTIFIER=false npm test --silent > test.out 2>&1 ; then
  echo success
else
  sed -e 's/\x1B\[[0-9;]*[a-zA-Z]//g' test.out
fi
