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(ts-sinon): implementing ts-sinon package #603

Merged
merged 13 commits into from
Jul 4, 2023

Conversation

omermorad
Copy link
Contributor

@omermorad omermorad commented Jun 7, 2023

Description

This pull request introduces the primary implementation of the ts-sinon package. Inspired by the features and ease of use offered by ts-jest, ts-sinon is designed to facilitate a wide array of testing scenarios and requirements.

Through this pull request, our goal is to equip developers with a powerful and efficient mocking tool that seamlessly integrates into their testing workflows, enhancing the robustness and reliability of their tests.

Closes #604

@omermorad omermorad changed the title feat(ts-sinon): implmenting ts-sinon package :) feat(ts-sinon): implementing ts-sinon package Jun 8, 2023
package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@underfisk underfisk left a comment

Choose a reason for hiding this comment

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

lgtm, I'm just concern on duplicating code/types but the feature looks pretty handy for sinon users

packages/testing/ts-sinon/src/mocks.ts Show resolved Hide resolved
@underfisk
Copy link
Contributor

@omermorad Could you merge the issues and address feedback? If so I'll be willing to push this PR

@omermorad
Copy link
Contributor Author

@omermorad Could you merge the issues and address feedback? If so I'll be willing to push this PR

@underfisk Sure, I apologize for the delay. I'll have time this weekend to fix it; in the meantime, I responded to your comment.

@omermorad omermorad requested a review from underfisk July 4, 2023 15:54
Copy link
Contributor

@underfisk underfisk left a comment

Choose a reason for hiding this comment

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

lgtm, as soon as you merge the conflicts and CI passes I'll try to push this

# Conflicts:
#	packages/common/package.json
#	packages/testing/ts-jest/package-lock.json
#	yarn.lock
@underfisk underfisk enabled auto-merge (squash) July 4, 2023 15:58
auto-merge was automatically disabled July 4, 2023 15:59

Head branch was pushed to by a user without write access

@omermorad omermorad requested a review from underfisk July 4, 2023 16:00
@underfisk underfisk enabled auto-merge (squash) July 4, 2023 16:01
@underfisk
Copy link
Contributor

@omermorad There's an issue with rpc-exception type. Could you add a quick fix so that CI can pass?

auto-merge was automatically disabled July 4, 2023 16:17

Head branch was pushed to by a user without write access

@omermorad omermorad requested a review from underfisk July 4, 2023 16:18
@omermorad
Copy link
Contributor Author

@omermorad There's an issue with rpc-exception type. Could you add a quick fix so that CI can pass?

Trying to, I can't find the problem, why would my changes be related to this package?

@underfisk
Copy link
Contributor

@omermorad There's an issue with rpc-exception type. Could you add a quick fix so that CI can pass?

Trying to, I can't find the problem, why would my changes be related to this package?

It isn't related, all you have to do is add ! to force the null check or simply add a null coalesce because for some reason this often pop in PR's..

@underfisk
Copy link
Contributor

underfisk commented Jul 4, 2023

@omermorad I've fixed the issue and added auto-merge so as soon as the checks pass, it should be good to go

@underfisk underfisk enabled auto-merge (squash) July 4, 2023 18:47
@underfisk underfisk merged commit 29d6bf6 into golevelup:master Jul 4, 2023
WonderPanda pushed a commit that referenced this pull request Jul 18, 2023
Co-authored-by: Ali Shabani <[email protected]>
Co-authored-by: MansurAliKoroglu <[email protected]>
Co-authored-by: Rodrigo <[email protected]>
Co-authored-by: Joseph Lee <[email protected]>
Co-authored-by: Yehonal <[email protected]>
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.

Implementing ts-sinon, based on ts-jest functionality
6 participants