-
Notifications
You must be signed in to change notification settings - Fork 2
Switch to Accord Project's Concerto (0.80) #23
Comments
I'm suspecting the error is triggered by this line in the latest Concerto code: |
The new Concerto code seems to make use of https://joshmiller.cc/symbol-hasinstance/ |
A slightly more specific analysis of what I think the problem is, and a proposed fix. Why are tests failing:
So I believe the support for I could not find a very official way to mock the constructor through sinon in Stack overflow or in the Sinon documentation. However, the following does work:
in the tests, use:
Better suggestions to address this are welcome. |
This is sound IMO. The concerto module includes test coverage for the usual unstubbed case. |
Thanks so much for the quick feedback. Corresponding fixes are in PR #24 |
Switching Concerto tools to the new
@accordproject/concerto
runs afoul of the recent changes to removeinstanceof
. (See issue accordproject/concerto#47)I believe those create confusion for the
sinon
-based testing. Sample trace:The text was updated successfully, but these errors were encountered: