Skip to content

Running a Single Test in the Repo Without Executing the Entire Test Suite? #866

Answered by kotAPI
kotAPI asked this question in Q&A
Discussion options

You must be logged in to vote

Let's say we want to test the hook at src/core/hooks/useLayoutEffect/useLayoutEffect.test.tsx

We can run just this file and avoid running entire test suite by using the following command on cli

npx jest src/core/hooks/useLayoutEffect/useLayoutEffect.test.tsx

Replies: 1 comment

Comment options

kotAPI
Feb 8, 2025
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by kotAPI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant