Skip to content

Working nock test - #80

Open
msachi wants to merge 1 commit into
masterfrom
nock-test
Open

Working nock test#80
msachi wants to merge 1 commit into
masterfrom
nock-test

Conversation

@msachi

@msachi msachi commented Apr 4, 2019

Copy link
Copy Markdown

@karam1ashqar This is a working example of a nock test as it was meant to be used - it's mocking the external API's response, making your supertest tests independent of it. You will see that the test passes even if you disconnect from the internet (but some of your other tests will fail because they are not using nock and are still going directly to the external API).

@karam1ashqar

Copy link
Copy Markdown
Contributor

@msachi Thank you so much, I will look into it, I appreciate your honest help.

@faris114

faris114 commented Apr 5, 2019

Copy link
Copy Markdown
Contributor

thank you for feedback marko was good to know

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.

3 participants