-
Notifications
You must be signed in to change notification settings - Fork 99
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
Hi guys, Was trying to create test code for the amchart, using jest but faced some issue. #1223
Comments
Have you reviewed our Jest tutorial? |
Hi @martynasma apologies for the late reply, regarding the issue, yeah I have done the same thing that you guys mentioned in the documentation. babel.config.js: jest.config.js: package.json (devDependencies): package.json (dependencies): as you can see in the above images, please let me know what else I need to do, to complete my test code for the component. |
Are you sure that you have Also, you need to remove the afterEach(() => {
document.body.removeChild(document.getElementById("chartdiv"));
}); |
Hi @Pauan sorry for the late reply, yeah I am using it correctly, but can you show me for example how you have created the test code for the amCharts? That will be great help. |
The Our docs show how to set up everything correctly (including the tests), and we have a working example. |
This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added. |
@brijesh-imemori did your issue resolved? I've met the same issue as you. |
Hi @stanley985 , and also create jest.config.js module.exports = { and add the above code to that. also, we have made some changes in package.json "scripts": { just look into it if this helps. |
I will have a look and test if this work for me. whether success or not I will inform you. thanks a lot for this. |
Does your package.json config same as officer doc? I used Angular not React |
We are using React ts, it worked for us. |
Error:
I have been working on the test code for AmCharts, and I've encountered an issue. Despite trying various solutions, I haven't been able to find a resolution for this particular problem, So guys please help me out to resolve this issue.
The text was updated successfully, but these errors were encountered: