mirror of
https://github.com/HappyLifeOk/cc-3-8-x-mcp.git
synced 2026-08-22 06:27:23 +00:00
[cc-3-8-x-mcp] 修复: 补全离线 CLI 解析路径与自包含夹具
改了什么:解析结果记录资源来源路径,并生成独立 Prefab、嵌套资源和脚本夹具。 为什么:测试依赖外部项目资源和临时目录时会导致嵌套解析与类 ID 结果不稳定。 影响范围:离线 CLI 解析、组件引用错误信息及 offline tools 测试。
This commit is contained in:
@@ -5,7 +5,7 @@ const assert = require('node:assert/strict');
|
||||
const path = require('path');
|
||||
const { queryPrefab } = require('../src/query/index.js');
|
||||
|
||||
const FIXTURE = path.join(__dirname, 'fixtures', 'HomeUI.prefab');
|
||||
const FIXTURE = require('./fixture.js').ensureHomeUiFixture();
|
||||
|
||||
// ─── selector: tree ─────────────────────────────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user