How to skip ahead a lot of blocks when testing

Malibu asked on Telegram:

I’m trying to skip ahead a lot of blocks for my tests. However, it is too many blocks for the advanceBlockTo in the test-helpers. Does anyone know of any workarounds for this?

@shark0der advised:

tweak the intervals for your test
you want to test the logic of the contract - the actual interval doesn’t matter
set it to 10 blocks in tests
you can inherit the actual contract and only override what you need (in a mock testing contract)
this way it’ll be closer to the actual contract