Test suite failed to run. RangeError: Maximum call stack size exceeded, when trying to unit test a component. #11384
Unanswered
ZaeemKhaliq
asked this question in
Quasar App Extensions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am doing a really simple unit test of a component of my app. In the component, I have imported an icon from quasar (QIcon) as :-
//Cards.vue -> Component name
import { outlinedPlayArrow } from "@quasar/extras/material-icons-outlined";I am running the test with
npm run test:unitWhen I ran the test initially, I was getting the following error:-
I researched a bit and some answer said to include the @quasar folder in node_modules in the 'transformIgnorePatterns' property of jest config in order to not ignore the transformations for quasar extras. So I did this:-
But now it's giving this error: -
Please help me why is this problem occurring?
I am doing this simple test:-
My jest.config.js file:-
The babel.config.js file:-
The babel.rc file:-
And my package.json:-
Beta Was this translation helpful? Give feedback.
All reactions