jasmine / jasmine-npm

A jasmine runner for node projects.
MIT License
377 stars 145 forks source link

Add option "require(s)" #136

Closed liuxh0 closed 6 years ago

liuxh0 commented 6 years ago

As discussed in #135, add new option --require for CLI and "requires": [ ] for configuration file. A common use case is: --require=ts-node/register.

Although option helper can achieve the goal, there are two main reasons for this option:

  1. Tools like mocha and istanbul have the same option.
  2. It needs to create a separate helper js and require modules in that file.