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

Feat: Allow non conflicting path methods to merge #78

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

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


export function expectErrorType(result: MergeResult, type: ErrorType): void {
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

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.

5 participants