-
Notifications
You must be signed in to change notification settings - Fork 680
global setup #3857
Copy link
Copy link
Closed
Labels
STATE: Auto-lockedAn issue has been automatically locked by the Lock bot.An issue has been automatically locked by the Lock bot.
Metadata
Metadata
Assignees
Labels
STATE: Auto-lockedAn issue has been automatically locked by the Lock bot.An issue has been automatically locked by the Lock bot.
Type
Fields
Give feedbackNo fields configured for issues without a type.
What is your Test Scenario?
similar to how jest has a setup and setupAfterEnv (https://jestjs.io/docs/en/configuration#setupfilesafterenv-array), it would be nice to have a way to have a global 'beforeEach' in testcafe.
What are you suggesting?
this would help for the case when you have the same exact
beforeEachin every fixture.What alternatives have you considered?
as far as I can tell there aren't any other ways to do this, other than always copy-pasting the same beforeEach to every fixture.
Additional context
this would be useful w/ the testcafe testing library, where each test needs to do
addTestcafeTestingLibraryin the before each.