-
Notifications
You must be signed in to change notification settings - Fork 103
[Jest Testcase] Issue in running the test case after upgrading to ui5 web components 2.8.0 #7343
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
Comments
Hi @vdhyutidhara, Have you tried aligning the Please take a look also in the comments of that issue: SAP/ui5-webcomponents#10744 |
Hi @nnaydenow @ilhan007, Related to the configuration precedence, I read that the ![]() Also, when I moved all ![]() Please help us to resolve this issue. |
Hi @vdhyutidhara, Please provide somewhere we can reproduce the problem or provide repository offline where we can debug. Regards, |
Hello @Lukas742, @MarcusNotheis, I've traced the issue to Later on, this PR introduced new files with a These Could you please take a look? Hi @vdhyutidhara, As a temporary workaround until the issue is resolved, you can replace the import: import '@ui5/webcomponents-react/dist/Assets'; with the individual imports, excluding the assets that trigger fetch calls: import '@ui5/webcomponents/dist/Assets.js';
import '@ui5/webcomponents-fiori/dist/Assets.js';
import '@ui5/webcomponents-react/dist/json-imports/i18n.js'; This should help avoid the problem caused by the Regards, |
🎉 This issue has been resolved in version v2.10.1 🎉 The release is available on v2.10.1 Your semantic-release bot 📦🚀 |
Uh oh!
There was an error while loading. Please reload this page.
Bug Description
Hi Team,
I am having an issue in running the test cases.
I am using "jest": "29.5.0"
My jest config in package.json is
My jest.config.js configuration is,
When I have added shim import in App.tsx:
import '@ui5/webcomponents-base/dist/ssr-dom-shim.js';
I am getting the following test failures along with frontend issues like ui5-dialog not opening, Analytical table not rendering properly, etc.
Test Error
TypeError: Cannot destructure property 'labels' of 'internals' as it is undefined.
When I have not added the above shim import in App.tsx, my frontend issues automatically resolve, but still getting the following error on running the test case
TypeError: Cannot destructure property 'labels' of 'internals' as it is undefined.
When I remove the shim import setupTest.js, I am getting the following error for all test cases:

Currently, I am not facing any UI issues. I have only been facing problems in running my test cases.
Please help us to resolve the issue because we have been stuck in this for quite a long time. We need to upgrade it on high priority.
Affected Component
No response
Expected Behaviour
No response
Isolated Example
No response
Steps to Reproduce
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.8.0
Browser
Chrome
Operating System
Windows 11
Additional Context
No response
Organization
SAP Labs India
Declaration
The text was updated successfully, but these errors were encountered: