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.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
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; }
});