JS-TOD: Detecting order-dependent flaky tests in Jest
We present JS-TOD ( J ava S cript T est O rder-dependency D etector), a tool that can extract, reorder, and rerun Jest tests to reveal possible order-dependent test flakiness. Test order dependency is one of the leading causes of test flakiness. Ideally, each test should operate in isolation and yield consistent results no matter the sequence in which tests are run. However, in practice, test outcomes can vary depending on their execution order. JS-TOD employed a systematic approach to randomising tests, test suites, and describe blocks. The tool is highly customisable, as one can set the number of orders and reruns required (the default setting is 10 reorder and 10 reruns).
Authors
- Amjed Tahir (ORCID: https://orcid.org/0000-0001-9454-1366)
- Shawn Rasheed (ORCID: https://orcid.org/0000-0001-7683-4296)
- Negar Hashemi
- August Shi (ORCID: https://orcid.org/0000-0001-8239-3124)
- Rachel Blagojevic
Institutions
- Universal College of Learning (NZ)
- Massey University (NZ)
- The University of Texas at Austin (US)
Publication Details
- Journal
- Science of Computer Programming
- Published
- 2026-02-19
- DOI
- https://doi.org/10.1016/j.scico.2026.103462
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00