Follow-up from "Add `findBy*` and `findAllBy*` to `extendWrapper` Jest helper"
The following discussion from !54398 (merged) should be addressed:
-
@peterhegman started a discussion: VTU doesn't currently export
ErrorWrapperso this is the only way we can create anErrorWrapper. I opened an upstream PR to exportErrorWrapperbut not sure when it will be reviewed/merged.Once
ErrorWrapperis exported we can remove theemptyElementline and change this to:return new ErrorWrapper(text)I have tested locally with
yarn linkand all the specs pass without modification so we shouldn't have to make any changes to existing specs.
Once ErrorWrapper is exposed, presuming the upstream PR is accepted, let's make sure we remember to update this code segment.