We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So I am having a very random error on the response callbacks my tests look something like this:
it('POST / -> successful', () => { let username = (Date.now()).toString(32); let email = `${(Date.now()).toString(32)}@test.dev` let password = `${(Date.now()).toString(32)}@123` return request(userRouter) .post('/') .send({ name: username, email: email, password: password }) .expect(201) .expect('Content-Type', /json/) .then((response) => { // error happens after breakpoint here expect(response.body).toEqual( expect.objectContaining({ id: expect.any(Number), createdAt: expect.stringMatching(timeRegex), name: expect.stringMatching(username), email: expect.stringMatching(email) }) ); testUsers.push(response.body as User) }, (response) => { console.log(response) }); });
After some debugging using Visual Studio Code's Debug features. I figured the error happened after the breakpoint but I couldn't find out more since
The text was updated successfully, but these errors were encountered:
I am getting the following error: TypeError: Cannot read property 'apply' of undefined
TypeError: Cannot read property 'apply' of undefined
Sorry, something went wrong.
No branches or pull requests
So I am having a very random error on the response callbacks my tests look something like this:
After some debugging using Visual Studio Code's Debug features. I figured the error happened after the breakpoint but I couldn't find out more since
The text was updated successfully, but these errors were encountered: