Skip to content

Update dependencies to latest #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"reporter": "spec",
"timeout": 10000,
"require": "test/init.js",
"exit": true
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
"bluebird": "^3.4.6",
"chalk": "^4.0.0",
"debug": "^4.1.1",
"loopback-connector": "^4.10.2",
"loopback-connector": "^5.0.0",
"pg": "^8.0.2",
"strong-globalize": "^6.0.0",
"uuid": "^7.0.3"
"uuid": "^8.3.0"
},
"devDependencies": {
"eslint": "^6.0.1",
"eslint": "^7.7.0",
"eslint-config-loopback": "^13.1.0",
"juggler-v3": "file:./deps/juggler-v3",
"juggler-v4": "file:./deps/juggler-v4",
"lodash": "^4.17.4",
"loopback-datasource-juggler": "^3.0.0 || ^4.0.0",
"mocha": "^7.1.1",
"mocha": "^8.1.2",
"rc": "^1.0.0",
"should": "^13.2.3",
"sinon": "^9.0.2"
Expand Down
8 changes: 4 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ docker -v > /dev/null 2>&1
DOCKER_EXISTS=$?
if [ "$DOCKER_EXISTS" -ne 0 ]; then
printf "\n\n${CYAN}Status: ${PLAIN}${RED}Docker not found. Terminating setup.${PLAIN}\n\n"
exit 1
return 1
fi
printf "\n${CYAN}Found docker. Moving on with the setup.${PLAIN}\n"

Expand All @@ -57,7 +57,7 @@ printf "\n${RED}>> Starting the postgresql container${PLAIN} ${GREEN}...${PLAIN}
CONTAINER_STATUS=$(docker run --name $POSTGRESQL_CONTAINER -e POSTGRES_USER=$USER -e POSTGRES_PASSWORD=$PASSWORD -p $PORT:5432 -d postgres:latest 2>&1)
if [[ "$CONTAINER_STATUS" == *"Error"* ]]; then
printf "\n\n${CYAN}Status: ${PLAIN}${RED}Error starting container. Terminating setup.${PLAIN}\n\n"
exit 1
return 1
fi
docker cp ./test/schema.sql $POSTGRESQL_CONTAINER:/home/ > /dev/null 2>&1
printf "\n${CYAN}Container is up and running.${PLAIN}\n"
Expand Down Expand Up @@ -91,7 +91,7 @@ while [ "$OUTPUT" -ne 0 ] && [ "$TIMEOUT" -gt 0 ]

if [ "$TIMEOUT" -le 0 ]; then
printf "\n\n${CYAN}Status: ${PLAIN}${RED}Failed to export schema. Terminating setup.${PLAIN}\n\n"
exit 1
return 1
fi
printf "\n${CYAN}Successfully exported schema to database.${PLAIN}\n"

Expand All @@ -102,7 +102,7 @@ docker exec -it $POSTGRESQL_CONTAINER /bin/sh -c "psql -U $USER -c 'CREATE DATAB
CREATE_DATABASE=$?
if [ "$CREATE_DATABASE" -ne 0 ]; then
printf "\n\n${CYAN}Status: ${PLAIN}${RED}Error creating database: $DATABASE. Terminating setup.${PLAIN}\n\n"
exit 1
return 1
fi
printf "\n${CYAN}Database created.${PLAIN}\n"

Expand Down
4 changes: 0 additions & 4 deletions test/mocha.opts

This file was deleted.