If at any point you think of an experiment you'd like to try out, all of the code examples below are editable.
then is a power-user feature that allows you to execute logic after
a test has finished running.
then is most useful if you are extending
Distilled or writing your own project-specific framework and merely using
Distilled as a base.
One of the major benefits of leveraging
then over using just
assert, or even a custom reporter to extend Distilled is that
guaranteed to execute no matter what, and is guaranteed to execute only once
the entire suite you call it on has finished running.
then resolves using native Promise rules. If you're familiar with how
async code works, you already know how
Code samples in this section demonstrate bug fixes. They're not particularly relevant to the documentation, but they help make sure that Distilled never has any regressions.