Treora opened a new issue #77:
URL: https://github.com/apache/incubator-annotator/issues/77


   I made a first small step in the 
[dom-tests](https://github.com/apache/incubator-annotator/tree/dom-tests) 
branch. Not yet sure what approach to take, but I thought to just start with 
some tests for text quote anchoring on small, artificial html documents, to 
test for various kinds of edge cases.
   
   A technical hurdle is that to test things in Node, we would need to run the 
code inside e.g. jsdom; does anybody know a simple way to do this? Something 
like [jsdom-global](https://github.com/rstacruz/jsdom-global) seems convenient, 
but that module looks outdated. [jest](https://github.com/facebook/jest) 
provides a jsdom environment by default, but we’d have to switch everything 
from mocha to jest.
   
   Currently I run tests in the browser (using `yarn start`), which works but I 
wonder how to get more useful output messages (it would not give me 
[`inlineDiffs`](https://mochajs.org/#diffs)). Help welcome.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to