Skip to content

Commit c7f0583

Browse files
committed
allow all flags to pass through new npm test script
1 parent 3a5a45d commit c7f0583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
CMD="npm run build $@; ./node_modules/.bin/wct --configFile wct.conf.json"
44

55
for el in "$@"; do
6-
if [[ "$el" == "-p" ]]; then
7-
CMD="$CMD -p"
6+
if [[ $el == -* ]]; then
7+
CMD="$CMD $el"
88
else
99
CMD="$CMD \"elements/$el/test/\""
1010
fi

0 commit comments

Comments
 (0)