This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

vit / test / setup.test.js
981 B 28 lines
1// SPDX-License-Identifier: MIT 2// Copyright (c) 2026 sol pbc 3 4import { describe, test, expect } from 'bun:test'; 5import { run } from './helpers.js'; 6 7describe('vit setup', () => { 8 test('rejects when run inside a coding agent', () => { 9 const result = run('setup', undefined, { CLAUDECODE: '1' }); 10 expect(result.exitCode).toBe(1); 11 expect(result.stderr).toContain('must be run by a human'); 12 }); 13 14 test('checks for git', () => { 15 const result = run('setup', undefined, { CLAUDECODE: '', GEMINI_CLI: '', CODEX_CI: '' }); 16 expect(result.stdout).toContain('git: found'); 17 }); 18 19 test('reports login status', () => { 20 const result = run('setup', undefined, { CLAUDECODE: '', GEMINI_CLI: '', CODEX_CI: '' }); 21 expect(result.stdout).toMatch(/login:/); 22 }); 23 24 test('reports skill installation status', () => { 25 const result = run('setup', undefined, { CLAUDECODE: '', GEMINI_CLI: '', CODEX_CI: '' }); 26 expect(result.stdout).toMatch(/skill:/); 27 }); 28});