A really handy solution is mswjs it mocks directly http calls independently of library used and with mswjs/data you can directly have a DB-like behavior