Skip to content

Sorting Methods

Johan Hargne edited this page Feb 19, 2018 · 3 revisions

You can define a sorting method for the test results within the configuration with the option named "sort".

Available Methods

"default"

Default setting. Returns the test results in the same order as they were provided from Jest.

"status"

Sorts test cases according to their status in the following order:

Pending > Failed > Passed

Please note that this will split test suites that have test cases with different statuses

Clone this wiki locally