How do you determine if your code is running under `apm test`?


There appears to be an API (AtomWindow::isSpecWindow()) that would tell me. It is one of the few places where options.test appears to be stored from Unfortunately, I can’t figure out how to get access to AtomWindow.

I don’t see any information about a better way to determine this on


You can call atom.inSpecMode().

Though it doesn’t have the answer you’re looking for, the latest version of the documentation you linked to is here: