Skip to content

global setup #3857

@benmonro

Description

@benmonro

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 beforeEach in 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 addTestcafeTestingLibrary in the before each.

Metadata

Metadata

Assignees

Labels

STATE: Auto-lockedAn issue has been automatically locked by the Lock bot.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions