mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-06-13 18:09:39 +08:00
🐛 fix(table-designer): 修复触发器编辑测试在 CI 中解析失败
- 移除测试中的 __dirname 依赖 - 改用 import.meta.url 定位 TableDesigner 源文件 - 修复 Ubuntu 前端构建阶段 TypeScript 编译错误
This commit is contained in:
@@ -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',
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user