Dashboard › cli › delta-upgrade CLI_VERSION mocks
01a0867e-7e00-78cc-9d6c-29f1d8f1dcdfTrap: statically mocking CLI_VERSION inside delta-upgrade.test.ts looks simpler, but it reverses that file’s dev-build assumptions and contaminates tests through the module graph. Fix: keep stable-version orchestration tests in a sibling isolated file, or use vi.resetModules() plus vi.doMock() before dynamic import and always doUnmock()/reset afterward.