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
Hi, I'm using jest on a node project and TypeError: environment.teardown is not a function appears appear after upgrading from [email protected] to [email protected] (yarn)
I search and found this #6393 but none of the solutions (like deleting yarn.lock, node_modules, yarn and reinstalling everyting) works for me.
After some tries it seems like the jest-environment-node package is not installed. Once manually installed all seems to work again.
Is this the right solution? Any help?
The text was updated successfully, but these errors were encountered:
You don't have to explicitly install it although it's a good practice so you don't have to rely on hoisting - you probably have some config (preset?) with a dep on an older version or some such.
This issue does not follow the issue template asking for a minimal reproduction, so closing
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Hi, I'm using jest on a node project and
TypeError: environment.teardown is not a function
appears appear after upgrading from [email protected] to [email protected] (yarn)I search and found this #6393 but none of the solutions (like deleting yarn.lock, node_modules, yarn and reinstalling everyting) works for me.
After some tries it seems like the
jest-environment-node
package is not installed. Once manually installed all seems to work again.Is this the right solution? Any help?
The text was updated successfully, but these errors were encountered: