Page MenuHomePhabricator

[Cashtab] Add correct dev dependency for ESlint types in jest
ClosedPublic

Authored by bytesofman on Jan 6 2022, 10:49.

Details

Summary

Prelim for T2088

Cashtab devs will see linting errors in their IDE for all test files as the correct dev dependency for the jest types used is not installed. This diff corrects the issue.

Test Plan
  1. Open any .test.js file in VS code
  2. Confirm jest terms are not highlighted in red as lint errors (e.g. it, describe, expect)

Diff Detail

Repository
rABC Bitcoin ABC
Branch
add-linting-scripts
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17802
Build 35430: Build Diffcashtab-tests
Build 35429: arc lint + arc unit

Event Timeline

Fabien requested changes to this revision.Jan 13 2022, 08:25

There is no point linting all the files every time, you only need to lint the ones you edited. I don't think this approach makes sense.

This revision now requires changes to proceed.Jan 13 2022, 08:25
bytesofman retitled this revision from [Cashtab] Support react and jsx specific linting to [Cashtab] Add correct dev dependency for ESlint types in jest.Jan 13 2022, 20:29
bytesofman edited the summary of this revision. (Show Details)
bytesofman edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Jan 13 2022, 21:14