On Events timed out #2265
-
Hi! I have this sample describe('/First Test', () => {
it('Successfully returns the user from GitHub', (done) => {
const scope = nock('https://api.github.com')
.get('/users/randomUser')
.reply(200, {
// Body with the reply from CURL to the same URL
})
scope.on('replied', (req, interceptor) => {
done();
});
})
}) It never falls on Error Message:
This happens both on What could be wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Is this the full test? Because a request is never actually made. Trying to figure out if the rest of the test of omitted for clarity or not. |
Beta Was this translation helpful? Give feedback.
-
Hi! It was a problem with the |
Beta Was this translation helpful? Give feedback.
Hi!
It was just to avoid a lot of code on the screen.
It was a problem with the
uuid
mock. I'm sorry and thanks for replying so quickly 😃