-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
bugcurrent functionality does not work as desiredcurrent functionality does not work as desiredhelp wantedscope:test-interface
Milestone
Description
Currently test modifiers allow silly and confusing combinations. We have linting rules to warn about them, and disallow some of them in the type definitions. We should go further and restrict the modifier chains so only useful combinations are allowed, but provide useful error feedback if disallowed combinations are used.
Examples of silly chains:
test.always.afterEach.cb()
test.after.test()
test.always.always.serial.always.afterEach(() => {})
Examples of confusing chains:
test.serial.afterEach()
(test.serial.afterEach #1178)
See also the discussion in #1005.
sindresorhus and SamVerschueren
Metadata
Metadata
Assignees
Labels
bugcurrent functionality does not work as desiredcurrent functionality does not work as desiredhelp wantedscope:test-interface