Closed adrianbatuto closed 2 weeks ago
@adrianbatuto Looking good at first (quick) look, but please:
- fix the failing CI checks - the jobs that used to have a single test case for them that is now a Jest test case can be deleted because all the jest test cases are getting picked up automatically by the fabric-0 job IIRC
- Try to encode a little more information in the commit message. The combined paths of the test cases won't fit in the commit message of course but you could use a more qualified plugin name ('connector-fabric') and also say that it's "all the remaining" tests being jestified
Hi peter, I removed the unnecessary CI checks except one which has to do with add-orgs.test.ts. I didn't include this in my changes because the test is currently being skipped.
@adrianbatuto: Hopefully the last change request: There is one fabric test that is still not migrated to jest from what I can tell: packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v2-2-x/add-orgs.test.ts
@petermetz I opted not to migrate this test to jest since this test is being skipped at the moment. Should I also include this in my PR?
@adrianbatuto: Hopefully the last change request: There is one fabric test that is still not migrated to jest from what I can tell: packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v2-2-x/add-orgs.test.ts
@petermetz I opted not to migrate this test to jest since this test is being skipped at the moment. Should I also include this in my PR?
@adrianbatuto Yeah, if it's being skipped it means right now it's broken, but even then, let's just migrate it over and we can fix the test itself later. Just make sure that the test runs (doesn't have to succeed, but it has to compile and run OK even if it fails the assertions at some point). Please also make sure to mark it skipped after the migration to jest is done.
@adrianbatuto: Hopefully the last change request: There is one fabric test that is still not migrated to jest from what I can tell: packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v2-2-x/add-orgs.test.ts
@petermetz I opted not to migrate this test to jest since this test is being skipped at the moment. Should I also include this in my PR?
@adrianbatuto Yeah, if it's being skipped it means right now it's broken, but even then, let's just migrate it over and we can fix the test itself later. Just make sure that the test runs (doesn't have to succeed, but it has to compile and run OK even if it fails the assertions at some point). Please also make sure to mark it skipped after the migration to jest is done.
Got it.
Commit to be reviewed
test(connector-fabric): jestify all remaining test cases
Fixes #3547
Pull Request Requirements
upstream/main
branch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.-s
flag when usinggit commit
command. You may refer to this link for more information.Character Limit
A Must Read for Beginners For rebasing and squashing, here's a must read guide for beginners.