Closed
Bug 1563777
Opened 6 years ago
Closed 6 years ago
Debugger jest config excludes jest tests with `firefox/` in path
Categories
(Firefox :: Untriaged, defect)
Firefox
Untriaged
Tracking
()
RESOLVED
DUPLICATE
of bug 1563776
People
(Reporter: jarilvalenciano, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.90 Safari/537.36
Steps to reproduce:
- Rename mozilla-central clone's directory to
firefox
. - Navigate to devtools/client/debugger.
- Run
yarn jest SourcesTreeItem
.
We currently exclude firefox/
from test paths because of Github. To run Mochitests from the debugger repo you have to clone MC into the repo folder. That MC ends up in a firefox/
folder. It's unlikely anybody running yarn jest
is trying to run any of the tests in that folder, so we exclude it.
Actual results:
Jest can't find the test.
Puter:debugger jarilvalenciano$ yarn jest sourcestreeitem
yarn run v1.17.0
$ /Users/jarilvalenciano/Local/mozilla-central/devtools/client/debugger/node_modules/.bin/jest sourcestreeitem
No tests found
In /Users/jarilvalenciano/Local/mozilla-central/devtools/client/debugger
231 files checked across 5 projects. Run with `--verbose` for more details.
Pattern: sourcestreeitem - 0 matches
error Command failed with exit code 1.
Expected results:
Jest should be able to find SourcesTreeItem.spec.js.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•