w3c / did-test-suite

W3C DID Test Suite and Implementation Report

Home Page:https://w3c.github.io/did-test-suite/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jest CLI test is failing -- possibly resolver test code issue

shigeya opened this issue · comments

Running jest (npm run test) on the current head of the main branch produces a lot of errors.

While there is at least a minor issue in PR #96 (one file is missing), currently,

  • all of the implementation JSON files are from the PR#96
  • all of the resolving tests are failing

There might be some issue with the resolver testing code.
@peacekeeper Since you're the implementer of the test code, would you please kindly check the reason why they're failing?
since universal-resolver-did-factom.json is missing, you need to remove the following line in did-resolution/default.js.

// require('../implementations/universal-resolver-did-factom.json'), -- MISSING

I created PR #110 for a temporary workaround.

Sorry for breaking the imports by referencing a not existing file. Actually the did:factom method is not working atm and should not be included in the default.js file. So the quick fix for everybody is to remove this line.
We did some changes the process of creating the files/imports for the testsuite which should fix and avoid those kind of issues.

There are also some changes to the Universal Resolver which will fix test failures but we won't be able to have a 100% green testsuite atm.

By the end of the week, I will create a PR will all the changes.

I've opened #114 which should fix most issues.
There are still ~15 tests failing with 4 of them related to the Universal Resolver and one of its drivers decentralized-identity/uni-resolver-driver-did-ccp#5

After disabling resolver-ethr-consensys-mesh.json (which is also the case on main), the failing tests are down to 7 across the whole test-suite with #114

This has now been fixed, we put broken implementations in their own grouping (but do run these when generating the final report).