]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/test.sh
Add ability to forbid user to upload video
[github/Chocobozzz/PeerTube.git] / scripts / test.sh
index 6e8e38659ea67f6557212e8526547cff35747e14..dc1baf97dfc19bb1b13b0439a26dd705ff636028 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/bash
 
 npm run build:server
 
@@ -6,5 +6,5 @@ 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 --bail server/tests
+npm run tslint -- --type-check --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" || exit -1
+mocha --exit --require ts-node/register --bail server/tests/index.ts