Skip to content

Commit

Permalink
chore(internal): forward arguments in scripts/test (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed May 3, 2024
1 parent 6bbeeb9 commit afeb1a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"

# Run prism mock on the given spec
if [ "$1" == "--daemon" ]; then
npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock "$URL" &> .prism.log &
npm exec --package=@stoplight/prism-cli@~5.8 -- prism mock "$URL" &> .prism.log &

# Wait for server to come online
echo -n "Waiting for server"
Expand All @@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then

echo
else
npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock "$URL"
npm exec --package=@stoplight/prism-cli@~5.8 -- prism mock "$URL"
fi
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ fi

# Run tests
echo "==> Running tests"
./node_modules/.bin/jest
./node_modules/.bin/jest "$@"

0 comments on commit afeb1a3

Please sign in to comment.