I think it could make it easier to deal with modifying mocks scoped to the it block you want to modify, it could also potentially make it easier to do re-recordings if you just manually delete the mock you want re-recorded.
The only thing I'm concerned with is how do you name the mock file with something like this:
cypress/integration/settings/billing.spec.js:
it('will render something after 30 seconds after some button is clicked', ...)
^Generates a mock: mocks/settings/billing/will-render-something-after-30-seconds-after-some-button-is-clicked.spec.json
I think it could make it easier to deal with modifying mocks scoped to the
it
block you want to modify, it could also potentially make it easier to do re-recordings if you just manually delete the mock you want re-recorded.The only thing I'm concerned with is how do you name the mock file with something like this:
cypress/integration/settings/billing.spec.js
:^Generates a mock:
mocks/settings/billing/will-render-something-after-30-seconds-after-some-button-is-clicked.spec.json
What do you think?