Skip to content
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

fix: fix db setup in tests #458

Merged
merged 11 commits into from
Dec 18, 2023
Merged

fix: fix db setup in tests #458

merged 11 commits into from
Dec 18, 2023

Conversation

alexey-yarmosh
Copy link
Member

Fixes #451:

  • init.sql moved to /migrations. It is used in docker-compose to prepare db in dev env, plus in tests setup to prepare test env.
  • tests also need seeds data, so there is seeds/test/index.js

test/setup.ts Outdated Show resolved Hide resolved
migrations/index.js Outdated Show resolved Hide resolved
@MartinKolarik MartinKolarik merged commit 0363f42 into master Dec 18, 2023
2 checks passed
@MartinKolarik MartinKolarik deleted the test-seeds branch December 18, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix DB setup in tests
2 participants