]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/test.sh
Add information at video upload if user video quota is reached
[github/Chocobozzz/PeerTube.git] / scripts / test.sh
index 701dea8d04baee8bd8cc84d3f82cf486c4311b77..b193a10bca1d9013bc6bbc2e8e01fe558b1004e8 100755 (executable)
@@ -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