Page MenuHomePhabricator

[lintstaged] Add Jest tests to `.lintstaged.js`
ClosedPublic

Authored by atul on Jul 25 2022, 7:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 27, 11:51 AM
Unknown Object (File)
Mon, May 27, 11:51 AM
Unknown Object (File)
Mon, May 27, 11:51 AM
Unknown Object (File)
Mon, May 27, 11:51 AM
Unknown Object (File)
Tue, May 14, 5:50 AM
Unknown Object (File)
Apr 21 2024, 5:09 PM
Unknown Object (File)
Apr 21 2024, 5:09 PM
Unknown Object (File)
Apr 21 2024, 5:09 PM
Subscribers

Details

Summary

Run lib and keyserver tests for the same conditions that flow is run in those directories.

Test Plan

Proof that the tests run:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Jul 25 2022, 7:27 AM
abosh added inline comments.
.lintstagedrc.js
29–33 ↗(On Diff #14866)

Shouldn't we be running yarn ... flow in the keyServerFlow method (like it was before) and not keyServerTest? I think you may have swapped the method bodies, just judging off the syntax of commands and the corresponding method name?

This revision now requires changes to proceed.Jul 25 2022, 7:40 AM

fix small thing

.lintstagedrc.js
29–33 ↗(On Diff #14866)

Yes! Good catch, thank you.

Re-made the changes because of some extraneous ESLint stuff, but wasn't careful when copy/pasting.

This revision is now accepted and ready to land.Jul 25 2022, 7:45 AM
This revision now requires review to proceed.Jul 25 2022, 7:54 AM

nit: consider changing the function names to libTest or keyServerJest for the sake of parallelism

also, we should change keyServer to keyserver in a couple places in this file

This revision is now accepted and ready to land.Jul 25 2022, 8:59 AM

nit: consider changing the function names to libTest or keyServerJest for the sake of parallelism

good point, made them both blahTest