Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
There was a problem hiding this comment.
Pull Request Overview
This PR updates Jest testing scripts to improve usability when running tests, particularly for AI tools. The changes replace the previous hardcoded src/ directory path with a flexible default configuration that allows overriding specific test paths via command arguments.
- Replaces hardcoded
src/directory with flexible Jest configuration - Adds new test script variants for different use cases (watch, debug, quiet, silent)
- Updates documentation to guide proper usage of the new test commands
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| package.json | Updates Jest scripts to remove hardcoded paths and adds new test variants with different output configurations |
| AGENTS.md | Documents the new test scripts and provides usage guidelines for AI tools |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5882 +/- ##
=========================================
Coverage 39.00% 39.00%
=========================================
Files 2754 2754
Lines 43488 43488
Branches 9828 9474 -354
=========================================
Hits 16964 16964
- Misses 25208 26494 +1286
+ Partials 1316 30 -1286 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Differences Found✅ No packages or licenses were added. SummaryExpand
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
I've fixed the description, to use |
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This PR updates Jest scripts to work better when running in AI tools: it now provides a default tests directory, that can be easily overwritten when running the command via npm
E.g.
npm run test -- tests/my-test-to-run.tsPreviously such command would run all tests anyway.
It also add new options to run jest:
npm run test:watchto run in watch modenpm run test:silentto disable console.log, console.error and console.warn outputs during testsnpm run test:debugto extend react-testing-library output log to help with investigating incorrect assertionsAlso modified
npm run test:ciin order to also supress console.log in the test results, to make the output easier to read (currently it can freeze browser due to very long output)