and here I see an error! it is not clear why (if I run 1 test through vscode, for example refresh token, then the error from BeforeAll will spread to all tests that I did not run!
FAIL tests/user.test.ts (10.619 s)
User
✕ refresh token (3 ms)
○ skipped ...
○ skipped ...
○ skipped ...
○ skipped ...
○ skipped ...
○ skipped ...
○ skipped ...
○ skipped ...
○ skipped ...
....
○ skipped ...
○ skipped ...
○ skipped ...
....
○ skipped ...
○ skipped ...
○ skipped ...
● ..... refresh token
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
Request failed with status code 404
● .....
once again... I pressed to execute only 1 test, but jest for some reason went to execute all tests at once and here in the console you see that errors started to pour in.
And the worst part... in the custom reporter that I pass via throw obj: AxiosError I get its payload on all tests. Although they should be skipped!
Hello! What 16 tests? I launched 1
then it is not very clear why the tests are in a pending state? I called a method that is executed after the tests are completed, where does the pending come from?
and the console clearly says that the tests are skipped, but in the reporter they are pending and for some reason with a payload
debugger
Version
29.7.0
Steps to reproduce
mytest
axios config
custom reporter
Expected behavior
when running 1 test 1 test is executed
Actual behavior
all are fulfilled
Additional context
I deliberately broke the authorization before all the tests!
in order to check how the custom reporter works I pass the request data via throw into the custom reporter
there is nothing interesting inside this function, I just take the fields that I need and then inside the custom reporter I try to generate json
and here I see an error! it is not clear why (if I run 1 test through vscode, for example refresh token, then the error from BeforeAll will spread to all tests that I did not run!
once again... I pressed to execute only 1 test, but jest for some reason went to execute all tests at once and here in the console you see that errors started to pour in. And the worst part... in the custom reporter that I pass via throw obj: AxiosError I get its payload on all tests. Although they should be skipped!
Hello! What 16 tests? I launched 1
then it is not very clear why the tests are in a pending state? I called a method that is executed after the tests are completed, where does the pending come from?
and the console clearly says that the tests are skipped, but in the reporter they are pending and for some reason with a payload debugger
Can someone please tell me what's going on? cli vscode
Environment