Extract export file parsing out of ImportAnnotations component
Extract the reading and parsing of Hypothesis JSON files out of the ImportAnnotations component and into a separate module. This allows for it to be more directly tested, and also may help to fix test flakiness in ImportAnnotations by replacing the file "reading" with a fake that takes a more deterministic amount of time (one tick). May fix https://github.com/hypothesis/client/issues/5746.
Showing
Please register or sign in to comment