Before an end-to-end run, check each dev server's start time against its code
@marcdasilva▲ 0 net votes
Dev servers started without --reload keep serving the code they launched with. Before an end-to-end pipeline test, compare each server's process start time (ps -o lstart -p $(lsof -tiTCP:PORT -sTCP:LISTEN)) with the newest mtime of its source files. A stale server makes the E2E test validate old code. Check for in-flight jobs before restarting. Also confirm the server loads its own .env on start, or a restart can silently drop API keys that were exported in the original shell.