Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/commands/spec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The system SHALL process credit card payments securely`;
});

describe('spec show', () => {
it('should display spec in text format', () => {
it('should display spec in text format', async () => {
const originalCwd = process.cwd();
try {
process.chdir(testDir);
Expand All @@ -64,7 +64,7 @@ The system SHALL process credit card payments securely`;
});

// Raw passthrough should match spec.md content
const raw = execSync(`cat ${path.join(specsDir, 'auth', 'spec.md')}`, { encoding: 'utf-8' });
const raw = await fs.readFile(path.join(specsDir, 'auth', 'spec.md'), 'utf-8');
expect(output.trim()).toBe(raw.trim());
} finally {
process.chdir(originalCwd);
Expand Down
6 changes: 3 additions & 3 deletions test/commands/validate.enriched-output.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ describe('validate command enriched human output', () => {
await fs.rm(testDir, { recursive: true, force: true });
});

it('prints Next steps footer and guidance on invalid change', () => {
it('prints Next steps footer and guidance on invalid change', async () => {
const changeContent = `# Test Change\n\n## Why\nThis is a sufficiently long explanation to pass the why length requirement for validation purposes.\n\n## What Changes\nThere are changes proposed, but no delta specs provided yet.`;
const changeId = 'c-next-steps';
const changePath = path.join(changesDir, changeId);
execSync(`mkdir -p ${changePath}`);
execSync(`bash -lc "cat > ${path.join(changePath, 'proposal.md')} <<'EOF'\n${changeContent}\nEOF"`);
await fs.mkdir(changePath, { recursive: true });
await fs.writeFile(path.join(changePath, 'proposal.md'), changeContent);

const originalCwd = process.cwd();
try {
Expand Down
3 changes: 2 additions & 1 deletion test/utils/file-system.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ describe('FileSystemUtils', () => {
expect(canWrite).toBe(false);
});

it('should follow symbolic links to files', async () => {
// Skip on Windows: creating symlinks requires elevated privileges or Developer Mode
it.skipIf(process.platform === 'win32')('should follow symbolic links to files', async () => {
const realFile = path.join(testDir, 'real-file.txt');
const linkFile = path.join(testDir, 'link-file.txt');
await fs.writeFile(realFile, 'content');
Expand Down
Loading