chore(framework): TS 测试基建(tsx+node:test) + core 常量

- 补 @types/node(tsconfig types:[node] 所需,原计划遗漏)
- tsconfig 加 allowImportingTsExtensions(import 带 .ts 后缀所需)
- test:framework 改用 run-framework-tests.mjs 递归枚举(node 20.13 <20.14 不支持 --test glob)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-28 14:20:25 +08:00
co-authored by Claude Opus 4.8
parent 2e18396388
commit f693f45895
6 changed files with 620 additions and 1 deletions
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"strict": true,
"noEmit": true,
"skipLibCheck": true,
"types": ["node"],
"lib": ["ES2020", "DOM"]
},
"include": [
"YouleNexus/assets/framework/**/*.ts",
"framework-tests/**/*.ts"
]
}