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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

JS-TOD: Detecting order-dependent flaky tests in Jest

Amjed Tahir, Shawn Rasheed, Negar Hashemi, August Shi et al.
Science of Computer Programming
Software Testing and Debugging Techniques
article

JS-TOD: Detecting order-dependent flaky tests in Jest

Amjed Tahir, Shawn Rasheed, Negar Hashemi, August Shi, Rachel Blagojevic
article en

Abstract

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).

Science of Computer ProgrammingVol. 252
Universal College of Learning (NZ), Massey University (NZ), The University of Texas at Austin (US)
Openalex Percentile: Top 60%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.