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

Switch from Node Test Runner to Jest for compatibility #356

Merged
merged 30 commits into from
Sep 6, 2024

Conversation

lemilonkh
Copy link
Contributor

  • Install jest
  • Setup and configure jest
  • Modify model tests to work with Jest
  • Remove unused config segments from jest.config.ts
  • Fix ESM module issues with jest by adjusting npm run test script
  • Fix ESM module issue in helpers.ts with import.meta.url
  • Convert city test to Jest

@lemilonkh lemilonkh requested a review from cephaschapa May 27, 2024 15:49
@lemilonkh lemilonkh self-assigned this May 27, 2024
@lemilonkh lemilonkh added enhancement New feature or request testing tooling labels May 27, 2024
@Open-Earth-Foundation Open-Earth-Foundation deleted a comment from evanp Jul 22, 2024
@thehighestprimenumber
Copy link
Contributor

I have moved as many tests as I could to jest. Files ending in .jest.ts and are picked up by jest. Files ending in .test.ts are picked up by the node test runner.

@thehighestprimenumber thehighestprimenumber force-pushed the feature/jest branch 3 times, most recently from 0c12602 to 029edb0 Compare September 6, 2024 14:28
@thehighestprimenumber thehighestprimenumber marked this pull request as ready for review September 6, 2024 14:42
Copy link
Contributor Author

@lemilonkh lemilonkh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! ✨

@thehighestprimenumber thehighestprimenumber merged commit a64e812 into develop Sep 6, 2024
3 checks passed
@thehighestprimenumber thehighestprimenumber deleted the feature/jest branch September 6, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants