Replies: 1 comment 1 reply
-
Hi, The "related" flow is a core feature in Bit. By default all your operations (compile, build, test, lint, format...) operate only on modified components and their dependents (recursively). Potentially you can just run |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a
lint-staged
config for my Git pre-commit hook:This works fine in my other projects, because
jest
is the command to run tests.lint-staged
passes a list of each changed file tojest --bail --findRelatedTests
, so it only tests the files being committed (and not the entire project).However,
bit test
is used in this environment. And this command doesn't have an argument like--findRelatedTests
where it will only test the files being committed.How should I handle this?
Beta Was this translation helpful? Give feedback.
All reactions