I’ve been using this pattern for my JS/TS code for a while now and I think it works well for creating reusable test fixture logic:
Test Hooks
I’ve been using this pattern for my JS/TS code for a while now and I think it works well for creating reusable test fixture logic: