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

initial jest testing #924

Merged
merged 7 commits into from
Nov 10, 2023
Merged

initial jest testing #924

merged 7 commits into from
Nov 10, 2023

Conversation

kevkevinpal
Copy link
Contributor

@kevkevinpal kevkevinpal commented Nov 10, 2023

Describe your changes

  • In this change I'm adding some jest testing to start adding automated testing into this project starting with unit tests

  • I've separated out the craco test configs and jest configs into two different files so they do not interfere with each other,
    right now we have some tests using craco tests but it does not provide test coverage which we will need in the future.

  • I also moved the satsToUsd helper file and make an extended helper file because it used uiStore which jest did not like

  • This change also fixes the git action names and makes it easier for the PR review to know which each test is doing

Issue ticket number and link

not sure but we might have a test issue related

Type of change

CI/CD

  • New feature (non-breaking change which adds functionality)

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested on Chrome and Firefox
  • I have tested on a mobile device
  • I have provided a screenshot or recording of changes in my PR if there were updates to the frontend

@kevkevinpal kevkevinpal marked this pull request as ready for review November 10, 2023 20:36
@kevkevinpal kevkevinpal merged commit 4420f1a into stakwork:master Nov 10, 2023
5 checks passed
elraphty pushed a commit that referenced this pull request Jan 26, 2024
* initial jest testing

* add to git actions

* testing to see if this fixes our craco tests

* testing to see if this fixes our craco tests

* fix exports of helpers

* added configs for both jest and craco to use

* seperated workflows and renamed them to be clearer
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

Successfully merging this pull request may close these issues.

1 participant