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

Not able to mock in jest #48

Open
DracoRunner opened this issue Apr 11, 2020 · 3 comments
Open

Not able to mock in jest #48

DracoRunner opened this issue Apr 11, 2020 · 3 comments

Comments

@DracoRunner
Copy link

Hi i need help on testing,
I am writing unit test cases but when i am trying to mock this but not able to mock confirm alert please help me to do this .

@gurmeetsinghmalhotra
Copy link

@MahiBaghel Were you able to solve this out? I am facing a similar issue.

@ar-lk
Copy link

ar-lk commented Dec 22, 2021

Anyone found a way to do testing with this. or a way to mock this? needed a solution for this

@alextate4
Copy link

I am running into similar issues. I can mock this and test that it was called but I do not know a way to test all the functions inside of it.

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

No branches or pull requests

4 participants