RealOrangeOne/react-native-mock

axios calls don't return

Open

#131 ouverte le 12 avr. 2017

Voir sur GitHub
 (6 commentaires) (0 réactions) (0 assignés)JavaScript (151 forks)github user discovery
Mockhelp wanted

Métriques du dépôt

Stars
 (567 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

I have a suite of integration tests that use axios - which in turn uses the newly mocked out XMLHttpRequest. These calls don't return anymore.

I do stub out the API requests for the rest of my test suite, but I'd still like to be able to run integration tests to verify the contracts for some of the APIs - verifying the integration doesn't break.

Is there a way to replace the mock or unmock it? This used to work before 0.3.0.

Guide contributeur