setup.sh - Adapt to local version of composer/bower/karma
[civicrm-core.git] / tools / scripts / npm / test.sh
CommitLineData
77665792
TO
1#!/bin/bash
2if which node_modules/karma/bin/karma >> /dev/null; then
3 node node_modules/karma/bin/karma start tests/karma.conf.js
4elif which karma >> /dev/null ; then
5 karma start tests/karma.conf.js
6else
7 echo "ERROR: Failed to find karma"
8 exit 1
9fi