Skip to content

armgit / kiln

Public Imported from GitHub
0

Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.

1.3 KB
Raw Blame
import { expect, spyOn, test } from 'bun:test';

test('the portable gate selects script contracts without selecting historical author-input suites', async () => {
  const previousExitCode = process.exitCode;
  const spawn = spyOn(Bun, 'spawnSync').mockReturnValue({ exitCode: 0 } as ReturnType<typeof Bun.spawnSync>);
  try {
    await import('../test-portable');
    expect(spawn).toHaveBeenCalledTimes(3);
    expect(spawn.mock.calls[1]![0]).toEqual(['node', 'packages/troy/scripts/test.mjs']);
    expect(spawn.mock.calls[2]![0]).toEqual(['node', 'packages/cabin-woods-psx-horror/scripts/test.mjs']);
    const [command] = spawn.mock.calls[0]!;
    expect(command).toContain('./scripts/tests/static-server.test.ts');
    expect(command).toContain('./scripts/tests/checks.test.ts');
    expect(command).toContain('./packages/scene-kit/tests/ui/browser-launch.test.ts');
    expect(command).not.toContain('./packages/foundry-floor/tests/unit/ff3-pack.test.ts');
    expect(command).not.toContain('./packages/farm/tests/unit/hand-clearance.test.ts');
    expect(command).not.toContain('./packages/foundry-floor/tests/unit/glb-world.test.ts');
    expect(command).not.toContain('./packages/golden-gate/tests/unit/vehicle-models.test.ts');
  } finally { spawn.mockRestore(); process.exitCode = previousExitCode; }
});