Skip to content

Conversation

@dbryar
Copy link

@dbryar dbryar commented Sep 3, 2022

There is an open TODO in the queue to allow non-conflicting methods to merge in to the same path, so I've completed it.

The code may not be entirely the neatest (its a little bit of a hack), but open to suggestions.

@dbryar
Copy link
Author

dbryar commented Sep 3, 2022

This also includes my previous MR for deep merging security schemes

if (isErrorResult(result)) {
expect(result.type).toEqual(type);
} else {
fail(`Expected an error, but instead got: ${JSON.stringify(result, null, 2)}`);
Copy link
Author

Choose a reason for hiding this comment

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

Fail no longer exists in Jest v27+


export function expectMergeResult(actual: MergeResult, expected: MergeResult): void {
if(isErrorResult(actual)) {
fail(`We expected to have a successful merge and instead got: ${JSON.stringify(actual, null, 2)}`);
Copy link
Author

Choose a reason for hiding this comment

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

same as above

@Fimeo
Copy link

Fimeo commented Nov 16, 2022

Hi, did you find any issue to not merge this PR ?

@jmaver-plume
Copy link

@robertmassaioli Can this be merge?

@mpuigdomenchSage
Copy link

any chance this could be merged ?

@jfrconley
Copy link

@robertmassaioli Would be great if we could merge this

1 similar comment
@kekewong
Copy link

@robertmassaioli Would be great if we could merge this

@KerchumA222
Copy link

Still need this functionality. Can this be merged?

@akira28
Copy link

akira28 commented Jan 9, 2025

@dbryar any chance you publish the forked code on npm?

@dbryar
Copy link
Author

dbryar commented Jan 10, 2025 via email

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.

8 participants