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
1 change: 0 additions & 1 deletion .github/workflows/squad-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
permissions:
contents: read
pull-requests: read
pull-requests: read

# Prevent parallel runs from competing for resources
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"MSMQ", "permadeath", "Permadeath", "CRDT", "httpx",
"Pydantic", "sdkgen", "ttft", "Strausz", "mycompany",
"slugified", "simplejwt", "pytest", "Luca", "Clemenza",
"Tessio", "Triaging", "Futurama", "mklink", "slnx", "jqlang",
"Tessio", "Triaging", "Futurama", "mklink", "mktree", "slnx", "jqlang",
"benleane", "TELMU", "Automator", "kedacore",
"DEVBOX", "myaccount"
],
Expand Down
3 changes: 2 additions & 1 deletion test/cli/consult.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ import {
} from 'node:fs';
import { join } from 'node:path';
import { randomBytes } from 'node:crypto';
import { tmpdir } from 'node:os';
import { execSync } from 'node:child_process';
import { isConsultMode, type SquadDirConfig } from '@bradygaster/squad-sdk';

const TEST_ROOT = join(
process.cwd(),
tmpdir(),
`.test-cli-consult-${randomBytes(4).toString('hex')}`,
);

Expand Down
5 changes: 3 additions & 2 deletions test/cli/export-import.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import { mkdir, rm, readFile, writeFile } from 'fs/promises';
import { join } from 'path';
import { existsSync } from 'fs';
import { randomBytes } from 'crypto';
import { tmpdir } from 'os';
import { runInit } from '@bradygaster/squad-cli/core/init';
import { runExport } from '@bradygaster/squad-cli/commands/export';
import { runImport } from '@bradygaster/squad-cli/commands/import';

const TEST_ROOT = join(process.cwd(), `.test-cli-export-import-${randomBytes(4).toString('hex')}`);
const IMPORT_ROOT = join(process.cwd(), `.test-cli-import-target-${randomBytes(4).toString('hex')}`);
const TEST_ROOT = join(tmpdir(), `.test-cli-export-import-${randomBytes(4).toString('hex')}`);
const IMPORT_ROOT = join(tmpdir(), `.test-cli-import-target-${randomBytes(4).toString('hex')}`);

describe('CLI: export/import commands', () => {
beforeEach(async () => {
Expand Down
3 changes: 2 additions & 1 deletion test/cli/init-upgrade-parity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { mkdir, rm, readFile, writeFile } from 'fs/promises';
import { join } from 'path';
import { existsSync } from 'fs';
import { randomBytes } from 'crypto';
import { tmpdir } from 'os';
import { runInit } from '@bradygaster/squad-cli/core/init';
import {
runUpgrade,
Expand All @@ -21,7 +22,7 @@ import {
} from '@bradygaster/squad-cli/core/upgrade';

const TEST_ROOT = join(
process.cwd(),
tmpdir(),
`.test-init-upgrade-parity-${randomBytes(4).toString('hex')}`,
);

Expand Down
3 changes: 2 additions & 1 deletion test/cli/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import { describe, it, expect, beforeEach, afterEach } from 'vitest';
import { mkdir, rm, readdir, readFile } from 'fs/promises';
import { join } from 'path';
import { existsSync } from 'fs';
import { tmpdir } from 'os';
import { randomBytes } from 'crypto';
import { runInit } from '@bradygaster/squad-cli/core/init';
import { getPackageVersion } from '@bradygaster/squad-cli/core/version';

const TEST_ROOT = join(process.cwd(), `.test-cli-init-${randomBytes(4).toString('hex')}`);
const TEST_ROOT = join(tmpdir(), `.test-cli-init-${randomBytes(4).toString('hex')}`);

describe('CLI: init command', () => {
beforeEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/cli/loop.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ describe('runLoop', () => {
});

await expect(runLoop(DEST, defaultOptions)).rejects.toThrow(
/gh CLI/i,
/Copilot CLI/i,
);
});

Expand Down
3 changes: 2 additions & 1 deletion test/cli/scrub-emails.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import { mkdir, rm, readFile, writeFile } from 'fs/promises';
import { join } from 'path';
import { existsSync } from 'fs';
import { randomBytes } from 'crypto';
import { tmpdir } from 'os';
import { runInit } from '@bradygaster/squad-cli/core/init';
import { scrubEmails } from '@bradygaster/squad-cli/core/email-scrub';

const TEST_ROOT = join(process.cwd(), `.test-cli-scrub-${randomBytes(4).toString('hex')}`);
const TEST_ROOT = join(tmpdir(), `.test-cli-scrub-${randomBytes(4).toString('hex')}`);

describe('CLI: scrub-emails command', () => {
beforeEach(async () => {
Expand Down
3 changes: 2 additions & 1 deletion test/cli/upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { mkdir, rm, readFile, writeFile } from 'fs/promises';
import { join } from 'path';
import { existsSync, mkdirSync, writeFileSync, readFileSync, rmSync, chmodSync } from 'fs';
import { tmpdir } from 'os';
import { randomBytes } from 'crypto';
import { runInit } from '@bradygaster/squad-cli/core/init';
import { runUpgrade, ensureGitattributes, ensureGitignore, ensureDirectories, ensureCastingDefaults, selfUpgradeCli } from '@bradygaster/squad-cli/core/upgrade';
import { getPackageVersion } from '@bradygaster/squad-cli/core/version';

const TEST_ROOT = join(process.cwd(), `.test-cli-upgrade-${randomBytes(4).toString('hex')}`);
const TEST_ROOT = join(tmpdir(), `.test-cli-upgrade-${randomBytes(4).toString('hex')}`);

describe('CLI: upgrade command', () => {
beforeEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/comms-teams-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ describe('token refresh failure fallback', () => {
// Refresh was attempted and failed
expect(refreshAttempted).toBe(true);
// Warning logged about refresh failure
expect(warnSpy).toHaveBeenCalledWith('⚠️ Token refresh failed β€” re-authenticating...');
expect(warnSpy).toHaveBeenCalledWith('⚠️ Token refresh permanently failed (invalid_grant) β€” re-authenticating...');
// Fell through to device code and succeeded
expect(deviceCodeCompleted).toBe(true);
expect(result.id).toBeDefined();
Expand Down
215 changes: 0 additions & 215 deletions test/scripts/architectural-review.test.ts

This file was deleted.

Loading
Loading