This repository has no description
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 link', () => {
8 test('--help shows usage', () => {
9 const result = run('link --help');
10 expect(result.stdout).toContain('Link');
11 expect(result.exitCode).toBe(0);
12 });
13
14 test('creates symlink without error', () => {
15 const result = run('link');
16 expect(result.exitCode).toBe(0);
17 });
18
19 test('is idempotent', () => {
20 run('link');
21 const result = run('link');
22 expect(result.exitCode).toBe(0);
23 });
24});