ArboreumDev / credit-union-frontend

Frontend in Next.js + Typescript + GraphQL
https://frontend-two-sandy.vercel.app
1 stars 0 forks source link

DbClient, Seeding network from fixture, helperScript #30

Closed djudjuu closed 4 years ago

djudjuu commented 4 years ago

what

FLOW

make down
make setup_test_db
yarn test:ci

HELPNEEDED:

somehow I can't get the hasura migration to wait until the docker compose is done... I tried lots of different makefile configurations and/or bashscripts...

gparuthi commented 4 years ago

I am getting an error: image

gparuthi commented 4 years ago

I added Make commands that seem to work. i.e. first run docker-compose up then setup tests then jest --ci then docker-compose down.

gparuthi commented 4 years ago

@djudjuu This PR should fix issues in this PR. Check it out. Also lets use the SQL enum type instead of the hasura default way to get enums. Its simpler and extendible to other postgres stuff for the future.