-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
I have chalk@5 in my project. When I run tests with jest-fail-on-console enabled — I'm getting errors like TypeError: chalk.red is not a function
There is also an issue with package.json of jest-fail-on-console. It doesn't specify chalk in peerDependency section, therefore required for project chalk version is neither validated during install nor installed.
update
Just found docs on chalk v5 breaking changes https://github.com/chalk/chalk/releases/tag/v5.0.0 and there are stated
It's totally fine to stay on Chalk v4. It's been stable for years.
So, just update to package.json of jest-fail-on-console to include chalk@4 in peerDependency would be enough
Metadata
Metadata
Assignees
Labels
No labels