]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/test.sh
Fix tests
[github/Chocobozzz/PeerTube.git] / scripts / test.sh
index fc607133b61c2b5184ae1c25cd6cd9dc0a15d84d..6c6312d5268009446417f9ac3c3d97184bcbdd26 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
+npm run tslint -- --type-check --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" || exit -1
 mocha --bail server/tests