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
atom-applications.coffee. Unfortunately, I can’t figure out how to get access to
I don’t see any information about a better way to determine this on https://atom.io/docs/v0.186.0/writing-specs.