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

The CI for unit test is failing #149

Open
dadiorchen opened this issue Dec 6, 2022 · 4 comments
Open

The CI for unit test is failing #149

dadiorchen opened this issue Dec 6, 2022 · 4 comments

Comments

@dadiorchen
Copy link
Collaborator

https://github.com/Greenstand/treetracker-web-map-core/actions/runs/3627876711/jobs/6118238700

Seems some syntax proble? can not find cy by cypress


Some hints:

  • Please read our readme for more information/guide/tutorial.
  • Here is an engineering book in Greenstand.
  • To know more about our organization, visit our website.
  • If you want to join the slack community (some resources need the community member's permission), please leave your email address.
@dadiorchen
Copy link
Collaborator Author

@keyy123 do you now why this happens?

@keyy123
Copy link
Contributor

keyy123 commented Dec 7, 2022

I can look into it! @dadiorchen

@dadiorchen
Copy link
Collaborator Author

@keyy123 thank you!

@keyy123
Copy link
Contributor

keyy123 commented Dec 8, 2022

I found the issue and will make a PR today. File Extentions Renamed from .spec.js => cy.js handles the cypress issues. Jest also fails 2 test from the entire suite b/c they use ESM import statements so I renamed the jest unit test files from .js => .mjs.

TLDR:
.spec.js => cy.js (cypress tests)
.test.js => .test.mjs (jest tests)

@keyy123 keyy123 mentioned this issue Dec 8, 2022
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

2 participants