You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jest's --onlyChanged option does not consider the module in the import 'xxx'; statement as dependencies.
So I can not get the advantage of --onlyChanged or --changedSince
To Reproduce
Consider the following code snippet:
import './dep';
describe('this test depends on "dep"', () => {
it('but jest does not consider "dep" as dependencies', () => {
// do something
})
})
When I modify dep.js, jest --onlyChanged do not detact the change and re-run the test.
Expected behavior
jest --onlyChanged should re-run the test
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
jest's
--onlyChanged
option does not consider the module in theimport 'xxx';
statement as dependencies.So I can not get the advantage of
--onlyChanged
or--changedSince
To Reproduce
Consider the following code snippet:
When I modify dep.js,
jest --onlyChanged
do not detact the change and re-run the test.Expected behavior
jest --onlyChanged
should re-run the testThe text was updated successfully, but these errors were encountered: