-2
When I run my test I get the following error Uncaught [object Object] thrown
Every time the test is run he says the error is in a different location, I can’t understand the reason. Sometimes the test goes by without this error but are few times the biggest problem is that the description of this error is not very descriptive.Here is an example photo:
Editing
Every time I run the tests I get the same error:
however each time in a different place and in a different test, for example this photo test passed the previous test, however while running the test again the error appeared in it (as in the photo). His code is as follows:
it('Given_invalidCnpj_When_RegisterOrg_Then_ExpectFalsy', () => {
expect(service.validateCNPJ("19737128000161")).toBeFalsy();
});
as we can see there is nothing too much to generate an error, this is making the identification of this error absurdly difficult for me. Remembering that if I run the test again will not give error in this test, it will pass and the error will appear in another test in another component, with no relation to the image.
Do you have code? More details? We need evidence to help.
– Jakson Fischer
Sorry @Jackson is that as each hour happens on a different component so I don’t know exactly what to show :/
– Guilherme Prado
All right, let’s go on one side, "Divide to conquer", let’s go to the first mistake, post what’s happening and then we’ll adjust the rest.
– Jakson Fischer
Come on, I will edit and add some information. For example the code of the test that gives error in this execution
– Guilherme Prado
I found the problem, thank you for your attention Jakson!
– Guilherme Prado
Good thing you got :D
– Jakson Fischer