You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.
I think we should
sinon
rather thanjest
for mocking axios in unit tests.It's really hard to mock properly axios with the couple Jest & TypeScript. For now, we have something like:
But as it's cast as
any
, it's not really TypeScript friendly...It's how it is done in react tests: https://github.com/jhipster/generator-jhipster/blob/master/generators/client/templates/react/src/test/javascript/spec/app/shared/reducers/application-profile.spec.ts.ejs#L79.
The text was updated successfully, but these errors were encountered: