Skip to content

Commit

Permalink
run tests with yarn if available
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterloftis committed Feb 24, 2017
1 parent 1e27aeb commit 9c6bf3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/test
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env bash

cd "$1" && npm test
BUILD_DIR=${1:-}
if yarn --version > /dev/null 2>&1; then
cd "$BUILD_DIR" && yarn test
else
cd "$BUILD_DIR" && npm test
fi

0 comments on commit 9c6bf3e

Please sign in to comment.