Default properties and action generators #
Bombadil comes with a set of default properties and action generators for terminal testing. You’ll probably want to reexport all or at least most of these:
export * from "@antithesishq/bombadil/terminal/defaults";In fact, these defaults are exactly what are used when
running tests without a custom specification file. If you want
to selectively pick just a subset of these, replace the
* with the relevant names:
export {
// Properties
exitSuccess,
noReplacementChars,
// Actions
typeBasicInput,
} from "@antithesishq/bombadil/terminal/defaults";You may freely combine defaults with your own properties and action generators. All properties and action generators exported by the top-level module are used by Bombadil.
The terminal defaults are rather simple: things like expecting the program to terminate with exit code 0 and not print byte sequences that the terminal can’t handle properly. You likely want to extend the defaults with a custom specification.