🐛 fix(table-designer): 修复触发器编辑测试在 CI 中解析失败

- 移除测试中的 __dirname 依赖
- 改用 import.meta.url 定位 TableDesigner 源文件
- 修复 Ubuntu 前端构建阶段 TypeScript 编译错误
This commit is contained in:
Syngnat
2026-06-12 18:07:03 +08:00
parent ae2b27c4b4
commit d3836da9cb

View File

@@ -1,10 +1,9 @@
import { readFileSync } from 'node:fs';
import path from 'node:path';
import { describe, expect, it } from 'vitest';
const tableDesignerSource = readFileSync(
path.resolve(__dirname, './TableDesigner.tsx'),
new URL('./TableDesigner.tsx', import.meta.url),
'utf8',
);