Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to override or get the function from it block before it gets executed, using globalhooks like beforeEach #5026

Closed
the-damarla opened this issue Nov 9, 2023 · 1 comment
Labels
type: question support question

Comments

@the-damarla
Copy link

To elaborate my issue, We need to somehow get the function from it block and needs to execute in nock environment so that API calls get recorded and will be saved as fixtures, When executing the tests afterwards the responses will be played back, So is there any feature to override the it functionality from a global level.
PreviouslyAsked isn't helping.

@the-damarla the-damarla added the type: question support question label Nov 9, 2023
@the-damarla the-damarla changed the title Any way to override or get the function from it block before it executes using globalhooks like beforeEach Any way to override or get the function from it block before it gets executed, using globalhooks like beforeEach Nov 9, 2023
@JoshuaKGoldberg
Copy link
Member

I don't believe there's a way to do that right now. #1457 might add it in.

Though, per #5027 we've moved question-asking to Discord. If you're reading this and interested, please:

  1. Search other issues for what you're trying to do
  2. Ask there or StackOverflow

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question support question
Projects
None yet
Development

No branches or pull requests

2 participants