Skip to content

Incompatible with chalk@5 #43

@kopach

Description

@kopach

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions