fix: restore CLI validation and test baseline (#1857)

Fixed lazy CLI helper imports for tunnel flows
Restored update command version detection
Made web test and dead-code commands run reliably
This commit is contained in:
Bohdan Triapitsyn
2026-06-27 09:45:34 +03:00
parent 38c9ff77c9
commit 5cc37d0c33
12 changed files with 70 additions and 11 deletions
+31
View File
@@ -0,0 +1,31 @@
import {
afterAll,
afterEach,
beforeAll,
beforeEach,
describe,
expect,
it,
test,
vi,
} from 'vitest';
const mock = Object.assign(
<T extends (...args: never[]) => unknown>(implementation?: T) => vi.fn(implementation),
{
module: vi.mock,
},
);
export {
afterAll,
afterEach,
beforeAll,
beforeEach,
describe,
expect,
it,
mock,
test,
vi,
};