ca0cf9c0ce
Append history on revisit instead of truncating, highlight the latest duplicate entry, add Start from this scene to the graph context menu, and keep storyline state isolated from project graph edits. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
659 B
TypeScript
19 lines
659 B
TypeScript
import assert from 'node:assert/strict';
|
|
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import test from 'node:test';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
function readSceneGraph(): string {
|
|
return fs.readFileSync(path.join(here, 'SceneGraph.tsx'), 'utf8');
|
|
}
|
|
|
|
void test('SceneGraph: контекстное меню узла — «Запустить с этой сцены»', () => {
|
|
const src = readSceneGraph();
|
|
assert.ok(src.includes('runFromScene'));
|
|
assert.ok(src.includes('onRunFromGraphNode'));
|
|
assert.ok(src.includes('onRunFromGraphNode?.(menu.graphNodeId)'));
|
|
});
|