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
Hello, I have a nx monorepo set up with jest, nextjs and graphql.
I have some simple tests that "should render" something, but the tests take rather ~3-5-7secods to compile.
Some seems to be related to barrel imports, or just imports overall.
In some tests I import @x/graphql, or @x/y, and it really slows down the test.
Even if I cut out the import from the test, if the component is importing it, it's still slowing down.
Anyone that can help me?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I have a nx monorepo set up with jest, nextjs and graphql.
I have some simple tests that "should render" something, but the tests take rather ~3-5-7secods to compile.
Some seems to be related to barrel imports, or just imports overall.
In some tests I import @x/graphql, or @x/y, and it really slows down the test.
Even if I cut out the import from the test, if the component is importing it, it's still slowing down.
Anyone that can help me?
Beta Was this translation helpful? Give feedback.
All reactions