Yarn PnP test failing
Summary
Yarn PnP test is failing when fs.readFileSync
is mocked. The PnP code is using the mocked function to read a JSON file and parse it, but the returned response is HTML, so fails to parse as invalid JSON. See job #2464835763 failed for a924d210.
With the current implementation, the mock isn't really necessary. The file is read and results passed to handlbars.compile
, but all of that can be tested without the mock.