Skip to content

Support arguments in "require" configuration #1666

Closed
@novemberborn

Description

@novemberborn

Issuehunt badges

Prompted by #1665 and inspired by Babel's plugin / preset configuration, it'd be neat to do this:

"ava": {
  "require": [
    ["@babel/register", {
      "ignore": ["test/*"]
    }]
  ]
}

If an array is provided we'd require the module, resolve any __esModules / default shenanigans, and invoke .apply() with the remaining values. We should support any number of arguments.


IssueHunt Summary

sculpt0r sculpt0r has been rewarded.

Backers (Total: $40.00)

Submitted pull Requests


Tips

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions