Skip to content

Commit 7d527de

Browse files
committed
fixed unit test startup script
1 parent b1abeab commit 7d527de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/test.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ cleanup() {
1616

1717
# Build library before the testing
1818
if [ -z "$@" ]; then
19-
testDir="./test/spec/**/*.js"
19+
testDir="./helpers/**/*.js"
2020
else
2121
testDir="$@"
2222
fi
2323

24-
if [ "$COVERAGE" = true ]; then
24+
if [ "$COVERAGE" = true ]; then
2525
echo "Running tests with coverage"
26-
npx nyc --reporter lcov mocha -r ./node_modules/dotenv/config --exit -R spec --timeout 70000 --recursive ./test/spec
26+
npx nyc --reporter lcov mocha -r ./node_modules/dotenv/config --exit -R spec --timeout 70000 --recursive ./helpers/**/*.js
2727

2828
if [ "$CONTINUOUS_INTEGRATION" = true ]; then
2929
cat coverage/lcov.info | npx coveralls
3030
fi
3131

32-
else
32+
else
3333
echo "Running tests without coverage"
3434

3535
if [ -z "$@" ]; then
36-
testDir="./test/spec/**/*.js"
36+
testDir="./helpers/**/*.js"
3737
else
3838
testDir="$@"
3939
fi

0 commit comments

Comments
 (0)