Add traits to all test files globally?


#1

Is it possible to add a trait to all tests at once? E.g. somehow in the vowfile.js?

My use case: add sinon to the context.


#2

You can access the _suites array on the runner instance inside vowfile.js.

The following code should go inside runner.before block.


runner._suites.forEach((suite) => {
  suite.trait('YOUR TRAIT')
})

#3

Would a PR for exposing _suites properly be a good idea?