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

Refactored tests and prepare for tests with records #53

Merged
merged 5 commits into from
Feb 12, 2025
Merged

Conversation

colodenn
Copy link
Member

@colodenn colodenn commented Feb 12, 2025

Currently, the CLI tests only handle migrations with empty tables, which is not adequate for ensuring a robust migration process. I have refactored the tests to follow a coherent structure, enhancing both clarity and maintainability. In this PR, I have added code to the tests to ensure that no rows are accidentally inserted.

@colodenn colodenn requested a review from leo February 12, 2025 10:07
@colodenn colodenn self-assigned this Feb 12, 2025
Copy link

github-actions bot commented Feb 12, 2025

Released an experimental package:

bun add @ronin/cli@corny-ron-1099-1-experimental-128

This package will be removed after the pull request has been merged.

@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
tests/fixtures/utils.ts 100.00% <100.00%> (ø)

@colodenn colodenn marked this pull request as ready for review February 12, 2025 10:23
Copy link
Member

@leo leo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small nitpick: We currently call many-to-many relationships "one-to-many", to keep the list of available kinds of relationships simple.

  • many-to-one (kind: 'one') (children reference their parents, e.g. members reference teams)
  • one-to-many (kind: 'many') (parents reference their children, e.g. accounts reference followers)

@colodenn colodenn merged commit 8a2fa2f into main Feb 12, 2025
3 checks passed
@colodenn colodenn deleted the corny/ron-1099-1 branch February 12, 2025 10:39
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.

3 participants