-
Notifications
You must be signed in to change notification settings - Fork 432
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(migration) add tests for normalizeMigrationDefinition #5565
test(migration) add tests for normalizeMigrationDefinition #5565
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
No changes to documentation |
Component Testing Report Updated Feb 1, 2024 10:54 PM (UTC)
|
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.
I think it would be nice to assert a couple of more cases:
- Calling the normalized function of node migration hooks resolves to a list of the returned mutations
- Returning nothing/void from an async node migration doesn't include
undefined
in the final list of mutations
f87ad1a
to
2aea431
Compare
2aea431
to
632f094
Compare
1ed416a
to
cc2b5d1
Compare
be0d838
to
c9563a3
Compare
da7e0ad
to
2e77de7
Compare
958869d
to
6fa1750
Compare
cc2b5d1
to
fd5e62c
Compare
}) | ||
}) | ||
|
||
describe('#createAsyncIterableMutation', () => { |
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.
is this test just testing that we follow an interface?
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.
for the most part it just ensures that it is returns an iterable. normalizeMigrateDefinition
internally calls this function so the above tests do actually test most of it's functionality
Description
Adds test for
normalizeMigrationDefinition
functionWhat to review
Not 100% sure if it makes sense and is testing the full capability of the functions, @bjoerge thoughts?
Testing
Added :)
Notes for release
N/A