X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Ftest.sh;h=b193a10bca1d9013bc6bbc2e8e01fe558b1004e8;hb=a8b5de6c670eb19ffbe40726bb60ef1d1dbc10dd;hp=701dea8d04baee8bd8cc84d3f82cf486c4311b77;hpb=df98563e2104b82b119c00a3cd83cd0dc1242d25;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/test.sh b/scripts/test.sh index 701dea8d0..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 -npm run tslint -- --type-check --project ./tsconfig.json -c ./tslint.json server.ts server/**/*.ts || 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