Skip to content

getVersion is not defined #7704

@hediet

Description

@hediet

🐛 Bug Report

Jest v24 crashes with "getVersion" is not defined.

To Reproduce

See source code.

Expected behavior

Jest does not crash.

Issue in source

This line requires cli.
But cli itself requires jest here. Clearly, getVersion is not exported at this point.

Run npx envinfo --preset jest

Paste the results here:

System:
    OS: Windows 10
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Yarn: 1.10.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions