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(builder): fix loads for relation with lazy loading set to true #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kevin-lot
Copy link
Collaborator

@kevin-lot kevin-lot commented Jul 3, 2022

fix loads for relation with lazy loading set to true and rework some tests to work with memory
database (and not mocks)

The fix: https://github.com/RobinCK/typeorm-fixtures/pull/198/files#diff-a958cbc039c63bc97979da7c9fe89951b68123f8ffaf17b6cf4dde65532259bbR34
:)

fix loads for relation with lazy loading set to true and rework some tests to work with memory
database (and not mocks)
@kevin-lot
Copy link
Collaborator Author

@RobinCK
What do you think about this PR ?
I would like to have your opinion ?

@RobinCK RobinCK self-requested a review July 4, 2022 18:49
@RobinCK
Copy link
Owner

RobinCK commented Jul 4, 2022

I like it, but it no longer looks like a unit test, but more like an integration test, as sqlite is used
I approved pr since the integration test adds reliability

@RobinCK RobinCK marked this pull request as ready for review July 4, 2022 18:50
@kevin-lot
Copy link
Collaborator Author

kevin-lot commented Jul 4, 2022

"but it no longer looks like a unit test"

I'm going to try to mock of "create" method of repository.
For now, I keep this PR in draft during my investigation.

@Chrisp1tv
Copy link

Hello @kevin-lot, any progress on this? 😄

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.

None yet

3 participants