Add --require feature to ospec executable (#2144)

* Allow requires before running tests

This enables requiring modules like `esm` before any test files are loaded.

* Update ospec documentation

Also add documentation for `--require` option

* Update ospec change-log.md

* [opsec] move the change log item to v2.0

* [ospec] tweak the docs
This commit is contained in:
Gilbert 2018-05-09 10:46:55 -05:00 committed by Pierre-Yves Gérardy
parent 43053c6088
commit 91b08c6491
3 changed files with 42 additions and 18 deletions

View file

@ -2,12 +2,14 @@
## Upcoming...
_2018-05-08_
<!-- Add new lines here. Version number will be decided later -->
- ...
## 2.0.0
_2018-05-xx_
- Added `--require` feature to the ospec executable ([#2144](https://github.com/MithrilJS/mithril.js/pull/2144), [@gilbert](https://github.com/gilbert))
- In Node.js, ospec only uses colors when the output is sent to a terminal ([#2143](https://github.com/MithrilJS/mithril.js/pull/2143))
- the CLI runner now accepts globs as arguments ([#2141](https://github.com/MithrilJS/mithril.js/pull/2141), [@maranomynet](https://github.com/maranomynet))
- Added support for custom reporters ([#2020](https://github.com/MithrilJS/mithril.js/pull/2020))