Jest tests really slow #4265
Unanswered
vascularone
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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