-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
test(repository): verify relation type in resolve{Relation}Metadata
#4046
Conversation
It's easier to review if "Hide whitespace changes" is selected. |
...repository/src/__tests__/integration/repositories/resolve-belongs-to-metadata.integration.ts
Outdated
Show resolved
Hide resolved
...s/repository/src/__tests__/integration/repositories/resolve-has-many-metadata.integration.ts
Outdated
Show resolved
Hide resolved
...s/repository/src/__tests__/integration/repositories/resolve-has-many-metadata.integration.ts
Outdated
Show resolved
Hide resolved
45c9e60
to
d814165
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
...repository/src/__tests__/integration/repositories/resolve-belongs-to-metadata.integration.ts
Outdated
Show resolved
Hide resolved
d814165
to
00c95b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better 👏
Personally, I think these tests are unit-level, because they just call resolve{Relation}Metadata
with some metadata object, and therefore they belong to src/__tests__/unit/resolve-{name}-metadata.test.js
. Such file-moves are best done outside of this pull request though.
00c95b1
to
9fc1981
Compare
Resolves #3440.
Split into two commits:
1) Added tests to verify the correct relation type is used in
resolve{Relation}Metadata
.2) Improved setup for
resolve{Relation}Metadata
tests based on #4046 (comment).Checklist
👉 Read and sign the CLA (Contributor License Agreement) 👈
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated👉 Check out how to submit a PR 👈