]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/test.sh
Convert tests to typescript
[github/Chocobozzz/PeerTube.git] / scripts / test.sh
index b341fc0d07049121575c1c53dad8f76488053ea6..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
-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