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

Simulate upload in storybook/jest #465

Open
marcoburrometo opened this issue Mar 31, 2021 · 1 comment
Open

Simulate upload in storybook/jest #465

marcoburrometo opened this issue Mar 31, 2021 · 1 comment

Comments

@marcoburrometo
Copy link

Hello everybody,
I would like to emulate an upload in my React project storybook and also in testing (made in jest)

Has anyone found a way to simulate an upload?

@jakubzitny
Copy link
Collaborator

Depends on what your implementation looks like. You can use sinon to mock HTTP requests, or mock the Evaporate service in a way that would give you information about what has been called.

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

2 participants