Skip to content
New issue

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

run tests react ts with jest failed #115

Open
ortchgit opened this issue Nov 3, 2023 · 4 comments
Open

run tests react ts with jest failed #115

ortchgit opened this issue Nov 3, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ortchgit
Copy link

ortchgit commented Nov 3, 2023

Im using the codiumai vscode extention in my react typescript project and i have an issue with running the generated tests in the extention pannel.
When im running the tests in my file.test.tsx files everything is working fine but when try to run the same tests in the extention pannel:
image
im getting this error:
image
image
image

my jest.config.ts:
image
I just discovered this tool and it's amazing and helps a lot, I want to recommend it to my coworkers but I don't want to recommend it until I know how to navigate it and fix problems like mine if they come up

@ortchgit
Copy link
Author

ortchgit commented Nov 3, 2023

UPDATE: After searching I found the following thread: jestjs/jest#11453
And after I downgraded the version of ts-node to version 9 some of the tests started to run and pass.
There are still a number of tests that seem to fail to run for some other reason:
image

@almog-lv
Copy link
Contributor

almog-lv commented Nov 5, 2023

@shaigeva please take a look

@shaigeva
Copy link
Contributor

shaigeva commented Nov 6, 2023

Hi @ortchgit, thank you for reporting!
This looks like an issue with our jest driver.

Any chance you can share more details?
Any of these would be useful.
(you can also send this to [email protected] and mention this github issue):

  1. Get the output of codium-ai extension:

In vscode's output window, select codium-ai.
Then clear the log with right-click.
And try to run the test again.
Then copy the content of the output window.
The output log contains a lot of details about the test running process that might help resolve the issue.
If there's an issue sharing because of paths, of course search-replacing with XXX doesn't harm the debugging effort.

  1. The full text of the error panel.

  2. If possible, the content of the a failing test and the content of a test that does successfully run.

Thank you!

@almog-lv
Copy link
Contributor

@ortchgit any update on this issue?

@almog-lv almog-lv changed the title run tests react ts with jest failed run tests react ts with jest failed Dec 19, 2023
@almog-lv almog-lv added the bug Something isn't working label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants