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

chore: add package.json script to run unit tests with watcher #12999

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EtherWizard33
Copy link
Contributor

@EtherWizard33 EtherWizard33 commented Jan 15, 2025

  • This script allows developers to run Jest in watch mode, providing continuous test execution and immediate feedback on code changes.

  • Key bindings in watch mode:

Screenshot 2025-01-15 at 3 54 25 PM

Description

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

- This script allows developers to run Jest in watch mode, providing continuous test execution and immediate feedback on code changes.
- Key bindings in watch mode:
  - Press `a` to run all tests.
  - Press `o` to run tests related to changed files.
  - Press `p` to filter tests by filename.
  - Press `t` to filter tests by test name.
  - Press `q` to quit watch mode.
  - Press `Enter` to trigger a test run manually.
@EtherWizard33 EtherWizard33 requested a review from a team as a code owner January 15, 2025 12:50
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@EtherWizard33 EtherWizard33 added the No QA Needed Apply this label when your PR does not need any QA effort. label Jan 15, 2025
@@ -56,6 +56,7 @@
"test": "yarn test:unit",
"test:unit": "jest ./app/ ./locales/",
"test:unit:update": "time jest -u ./app/",
"test:unit:watch": "jest --watch ./app/ ./locales/",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

need to remove the ./app/ ./locales/ so that it runs only on changed files since the last commit, need to try this first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No QA Needed Apply this label when your PR does not need any QA effort. team-wallet-ux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants