For the future: we could throw an exception of our own, and provide the Chai integration as a separate module, so that users may write e.g. expect(someNode).to.equalAST(someOtherNode). Here's an example of such an integration: https://github.com/krampstudio/chai-xml
For the future: we could throw an exception of our own, and provide the Chai integration as a separate module, so that users may write e.g.
expect(someNode).to.equalAST(someOtherNode)
. Here's an example of such an integration: https://github.com/krampstudio/chai-xml