Page MenuHomePhabricator

[cashtab] Ignore eslint false positive for jest import
ClosedPublic

Authored by Fabien on Dec 20 2022, 10:50.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Commits
rABCf45a493d62f9: [cashtab] Ignore eslint false positive for jest import
Summary

From eslint:

Jest is automatically in scope. Do not import "jest", as Jest doesn't export anything.

However this only stands for test files, jest is not automatically in the scope of other files and this causes a false positive, which can be safely ignored with an eslint single line error ignre comment.

Test Plan
cd web/cashtab
npm ci
npm test
eslint scripts/test.js

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable