Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test status and test output not displayed #207

Open
svdHero opened this issue Jun 22, 2020 · 7 comments
Open

Test status and test output not displayed #207

svdHero opened this issue Jun 22, 2020 · 7 comments

Comments

@svdHero
Copy link

svdHero commented Jun 22, 2020

Is this a bug report or a feature request?

Bug Report

Version Info

  • Version of Majestic: v1.7.0
  • Version of Jest: v24.9.1
  • Version of Node: v14.0.0
  • Operating System: Windows 8.1

Description

I have React app created via npx create-react-app my-app --template typescript --use-npm with out-of-the-box Jest functionality. I then added some unit tests, which run fine via npm test.

However, when I start a npx majestic from my project root directory and click the "Run tests" button the tests run, but I cannot see which tests failed and which succeeded, see screenshot. In fact, there is not any test status assigned to my individual test files.

What's the problem here?

majestic_bug

Also, the directory tree view on the right looks strange. Why does majestic add the whole file path beginning from the file system root C:\ underneath my project directory "bt_rpe_frontend" from which I started majestic?

@gregveres
Copy link
Contributor

Yes I have seen that too. I have found a workaround is usually, if I click on another test and then come back to this test file, the results should show.

@davidlukerice
Copy link

I'm starting to see this more in my CRA v4 project (which uses jest v26.6.0) after upgrading from CRA v3.
It typically happens when trying to run individual files or tests with it.only. Changing to a different file and back doesn't fix it anymore for me, and when I get back to the original file, the top banner is showing the 'test is running' animation.
The console that I'm running majestic from shows the test passed, though.

@frclba
Copy link

frclba commented Dec 4, 2020

I am having the same issue as you guys can see in the screenshot.
Screenshot from 2020-12-04 02-20-27

Pretty weird. Any solutions?

@svdHero
Copy link
Author

svdHero commented Dec 4, 2020

No, not so far. I have stopped using Majestic because of this. I hope this bug gets fixed soon.

@robsonsobral
Copy link

I'm under the impression the paths are somehow messed up. On Firefox, I'm getting:

Uncaught (in promise) Error: GraphQL error: ENOENT: no such file or directory, open 'C:\Users\sobral\_repositories\foo\E:\_repositories\foo\assets\scripts\forms\toggle-submit-button.unit.test.js'

'C:\Users\sobral\_repositories\foo\' is a symlink pointing to 'E:\_repositories\foo\'.

Accessing the folder directly, not by symlink, makes everything work fine.

@ap1969
Copy link

ap1969 commented Jun 3, 2021

Same problem: Uncaught (in promise) Error: GraphQL error: ENOENT: no such file or directory, open 'C:\dev\<package folder>\C:\dev\<other package folder>\src\services\tags\tags.jest.js'

My set-up involves some scripts in the package folder, and some outside.

No symlinks involved.

Running on windows 10.

In jest.config.js, I have the roots property listing both folders:

roots: [
     "<rootDir>",
     pluginFolder
  ],

. I suspect this is where the problem lies?

Regards,
Andy

@mmesarosiuSP
Copy link

mmesarosiuSP commented Nov 26, 2021

@frag997 It's happening for me too and unfortunately I haven't found any solution. In this case the only way to see why a test is failing is by checking the terminal. But the error output in the GUI is what makes Majestic so useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants