Fix/refactor tests

This commit is contained in:
2024-06-01 17:50:58 -07:00
parent e8fae51b32
commit 163e3a9de5
15 changed files with 160 additions and 135 deletions

20
npm
View File

@@ -1,13 +1,15 @@
#!/usr/bin/env bash
user_id=$(id -u)
image=btroops
#user_id=$(id -u)
#image=btroops
if [[ $1 == run && $2 == test* ]]
then
port=3005
else
port=8080
fi
#if [[ $1 == run && $2 == test* ]]
#then
# port=3005
#else
# port=8080
#fi
docker run --rm --init -it -v $PWD:/usr/src/app -u $user_id:$user_id -p $port:$port $image npm $@
#docker run --rm --init -it -v $PWD:/usr/src/app -u $user_id:$user_id -p $port:$port $image npm $@
source ./scripts/docker-run npm $@