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

[BUG] Jest test cannot find matches on Windows #1310

Closed
Ironem opened this issue Mar 3, 2022 · 6 comments
Closed

[BUG] Jest test cannot find matches on Windows #1310

Ironem opened this issue Mar 3, 2022 · 6 comments
Labels
bug Something isn't working technical debt If not paid, jeapardizes long-term success and maintainability of the repository. test:unit

Comments

@Ironem
Copy link

Ironem commented Mar 3, 2022

Describe the bug

Fail when I tried to run yarn test:jest on a new project without any changes. I was on branch 1.x on the commit of Wed Feb 9 2022. Even on other branch I have the same error.

To Reproduce
Steps to reproduce the behavior:

  1. Check out to 1.x : git checkout origin/1.x
  2. Install all dependencies with the right version of node : yarn osd bootstrap
  3. Run the test with : yarn test:jest
  4. See error on console output

image

Expected behavior
Should run all tests and give the results of tests.

OpenSearch Version
n/a

Dashboards Version
1.x

Plugins

n/a

Host/Environment (please complete the following information):

  • node : v10.24.1
  • yarn : 1.22.17
@Ironem Ironem added bug Something isn't working untriaged labels Mar 3, 2022
@kavilla
Copy link
Member

kavilla commented Mar 3, 2022

Hello @Ironem,

Potentially related to your OS. Are you running on windows? There is an existing issue there: jestjs/jest#7914.

@kavilla
Copy link
Member

kavilla commented Mar 4, 2022

@Ironem, is that your OS? If so, we can rename this issue to yarn test:jest for windows. You will also see some issues with integration tests and functional tests since we currently don't have snapshots for Windows (yet).

@Ironem
Copy link
Author

Ironem commented Mar 6, 2022

@Ironem, is that your OS? If so, we can rename this issue to yarn test:jest for windows. You will also see some issues with integration tests and functional tests since we currently don't have snapshots for Windows (yet).

Yeah, sorry for the late response, I am on Windows 10 and all tests doest not work, and I am trying to install node in wsl in order to get it work.

@kavilla
Copy link
Member

kavilla commented Mar 7, 2022

Sounds good, I will update the title of this issue to reflect as such. Thanks!

@kavilla kavilla changed the title [BUG] yarn test:jest does not work [BUG] Jest test cannot find matches on Windows Mar 7, 2022
@Ironem
Copy link
Author

Ironem commented Mar 7, 2022

So with WSL it works fine. You need to install make, python3, gcc and g++ in your WSL and then reinstall the project with yarn osd bootstrap and then tests run fine.

@tmarkley tmarkley added the technical debt If not paid, jeapardizes long-term success and maintainability of the repository. label May 25, 2022
@AMoo-Miki
Copy link
Collaborator

This is fixed with #2601.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working technical debt If not paid, jeapardizes long-term success and maintainability of the repository. test:unit
Projects
None yet
Development

No branches or pull requests

4 participants