Cannot read coverage directory (Jest, EAP)

Hi! I'm using RubyMine to work on Ruby and JavaScript (NodeJS) projects. In order to get support for the latest Cucumber I've started to use RubyMine 211.5538.3.

When I run my Jest tests with coverage I get a report at the end of the run but no colored lines or gutter markers for coverage. There is a message in the event log:

Jest coverage: Cannot read coverageDirectory option from Jest configuration

Jest does write the directory set in it's configuration file:

coverageDirectory: './coverage'

 

0
4 comments

https://youtrack.jetbrains.com/issue/WEB-49409 is fixed, fix is planned to be included in the next EAP

0

Thank you so much.

0

Has the Jest code coverage been moved somewhere else by any chance? Where do you specify the coverageDirectory? I'm getting a bubble popup with an error that the directory hasn't been specified but I can't find it in the Jest run configuration window

0

it can be specified in jest.config.js, see https://jestjs.io/docs/configuration#coveragedirectory-string

Why do you pass this option explicitly, BTW? You can use the **Run with coverage** to get the coverage report generated

0

Please sign in to leave a comment.