Skip to content

Breaking changes to the test interface for AVA 4 #2716

@novemberborn

Description

@novemberborn

See #2435. This will improve context typing and simplify usage.

  • Add test.macro(exec) and test.macro({exec, title}). This will return a test.Macro instance which can be passed to test()
  • Remove ability to pass an array of macros or implementations to test()
  • Fix the typing of test implementations (or macro executors) to allow promise-returning, observable returning and any-returning functions

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions