You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In a Nx workspace, for an angular component (angular v14), using the latest version of ngx-tippy-wrapper package and Jest as a test framework, an error occured "TypeError: (0 , import_tippy.default) is not a function" when we try to test this component.
To Reproduce
Create a simple angular component with its spec file as follows:
Additional context
Using 4.0.1 version of ngx-tippy-wrapper, there are no errors and the Jest test passes. Using 5.0.0 version of the same package, test does not pass anymore.
Thank you in advance for your help to fix this bug! ❤️
The text was updated successfully, but these errors were encountered:
and now in each test case where you use ngx tippy, just call the function. In my case the function was tailored for standalone components but you can also use it for modules with some changes.
Describe the bug
In a Nx workspace, for an angular component (angular v14), using the latest version of ngx-tippy-wrapper package and Jest as a test framework, an error occured "TypeError: (0 , import_tippy.default) is not a function" when we try to test this component.
To Reproduce
Create a simple angular component with its spec file as follows:
The component:
The template of the component:
... and its spec file:
Expected behavior
Test should passed.
Screenshots
Desktop
Environment context
"@angular/core": "^14.0.6",
"@nrwl/cli": "^14.4.3",
"@nrwl/jest": "^14.4.3",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"jest-preset-angular": "^12.2.0",
"ngx-tippy-wrapper": "^5.0.1",
"typescript": "~4.7.4",
Additional context
Using 4.0.1 version of ngx-tippy-wrapper, there are no errors and the Jest test passes. Using 5.0.0 version of the same package, test does not pass anymore.
Thank you in advance for your help to fix this bug! ❤️
The text was updated successfully, but these errors were encountered: