Jest: I wrongly receive "Empty test suite" running tests from Intellij since v24

Created on 12 Feb 2019  路  7Comments  路  Source: facebook/jest

馃悰 Bug Report

I'm not able to run the tests from Javascript tests using Intellij Idea interface.

To Reproduce

  1. Run tests

Expected behavior

I expect to be able to run them from Intellij idea interface

Link to repl or repo (highly encouraged)

https://github.com/nerder/jest24-intellij-issue-repro/

  System:
    OS: macOS 10.14.3
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 11.6.0 - /usr/local/bin/node
    Yarn: 1.13.0 - ~/.yarn/bin/yarn
    npm: 6.5.0 - /usr/local/bin/npm
  npmPackages:
    jest: ^24.1.0 => 24.1.0

Notes

I'm not 100% sure this should be posted here, since can strongly related to the code of the reporter implemented by Intellj, but since was an hidden breaking change, i feel like is good to post it here as well.

Bug Needs More Info

Most helpful comment

I'm currently on:

IntelliJ IDEA 2018.2.4 (Ultimate Edition)
Build #IU-182.4505.22, built on September 18, 2018
JRE: 1.8.0_152-release-1248-b8 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.3

Anyway yes, seems to be exactly that same thing.

Workaround

Adding _JB_INTELLIJ_JASMINE_REPORTER_DISABLED=true as an env variable in when running tests works as expected.

@SimenB do you think the issue can be closed here then?

All 7 comments

Seems like https://youtrack.jetbrains.com/issue/WEB-35512? What version of intellij are you on?

I'm currently on:

IntelliJ IDEA 2018.2.4 (Ultimate Edition)
Build #IU-182.4505.22, built on September 18, 2018
JRE: 1.8.0_152-release-1248-b8 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.3

Anyway yes, seems to be exactly that same thing.

Workaround

Adding _JB_INTELLIJ_JASMINE_REPORTER_DISABLED=true as an env variable in when running tests works as expected.

@SimenB do you think the issue can be closed here then?

Yes. Not sure how IntelliJ deals with these things, but you can try to open up an issue with them

The _JB_INTELLIJ_JASMINE_REPORTER_DISABLED=true worked for me as a workaround for now thanks.

Thank you @nerder - worked for me too. Definitely a IntelliJ issue.

If you follow the linked issues, you can see this is fixed in 2018.3 and newer - it won't be backported

Workaround

Adding _JB_INTELLIJ_JASMINE_REPORTER_DISABLED=true as an env variable in when running tests works as expected.

I've been having this empty test suite problem in webstorm with typescript for weeks. This finally fixed it! Thanks @nerder

Was this page helpful?
0 / 5 - 0 ratings