mountebank-formatters

0.0.2 • Public • Published

Formatters

As of v2.4.0, mountebank supports custom formatters.

A formatter consists of two functions:

  • load, which loads the --configfile used to start mountebank
  • save, which saves the test data captured in a running process of mountebank using the mb save command

Those two functions should work in concert, so you can round-trip the configuration. In other words, the following should always work for the same formatter:

mb save --savefile mb.json --formatter default
mb stop
mb start --configfile mb.json --formatter default

For years, mountebank supported EJS templating, which could be turned off using the --noParse CLI flag. When EJS made a breaking change, mountebank couldn't accept it because it would break existing config files. That has now been modularized into this module (allowing mountebank core to upgrade EJS), and remains the default option for backwards compatibility. However, now mountebank supports configurable formatters.

Readme

Keywords

Package Sidebar

Install

npm i mountebank-formatters

Weekly Downloads

21,569

Version

0.0.2

License

MIT

Unpacked Size

217 kB

Total Files

7

Last publish

Collaborators

  • bbyars