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

Add jest test suite #488

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add jest test suite #488

wants to merge 9 commits into from

Conversation

Lucaci-Andrei
Copy link
Contributor

What

  • Setup the Jest testing framework
  • Add initial test cases

How

  • Add Jest dependencies
  • Create test cases for some helper functions, custom hook and a react component

});
});

it('matches turf point structure', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess it's more about matching a GeoJSON structure 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Precisely, we are checking if the generateMyPositionLocation creates the proper object shape 😄

Copy link
Collaborator

Choose a reason for hiding this comment

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

So shouldn't it be it('matches GeoJSON Point structure')?

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

Successfully merging this pull request may close these issues.

2 participants