It involves mocking the chronik API and intercepting the requests. In order to do so a script (export-chronik-stub.ts) is added to generate a json mock which is later transformed into the expected protobuf chronik response, so the tests run offline.
Depends on D19802.