X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Ftest.sh;h=b193a10bca1d9013bc6bbc2e8e01fe558b1004e8;hb=a8b5de6c670eb19ffbe40726bb60ef1d1dbc10dd;hp=b341fc0d07049121575c1c53dad8f76488053ea6;hpb=165c8d2558828516a449c75edf3116f7dbc8c07c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/test.sh b/scripts/test.sh index b341fc0d0..b193a10bc 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,8 +1,10 @@ -#!/usr/bin/env sh +#!/bin/bash + +npm run build:server cd client || exit -1 npm test || exit -1 cd .. || exit -1 -standard || exit -1 -mocha server/tests +npm run tslint -- --type-check --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" || exit -1 +mocha --require ts-node/register --bail server/tests/index.ts