fix(e2e): 修复 10 个被 skip 的 E2E 测试
- 将 playwright.config.ts 的 mkdtemp 替换为固定路径,解决主进程/worker 临时目录不一致问题 - 交换后端 WAL 与迁移执行顺序,确保 sql.js 能读取到完整 schema - 修复 models.spec.ts 断言使用 exact:true 避免统一模型 ID 列干扰 - 移除全部 10 个 test.skip,26 个 E2E 测试全部通过
This commit is contained in:
@@ -8,7 +8,10 @@ const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = path.dirname(__filename)
|
||||
|
||||
const E2E_PORT = 19026
|
||||
const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'nex-e2e-'))
|
||||
const tempDir = path.join(os.tmpdir(), 'nex-e2e')
|
||||
if (!fs.existsSync(path.join(tempDir, 'test.db'))) {
|
||||
fs.rmSync(tempDir, { recursive: true, force: true })
|
||||
}
|
||||
const dbPath = path.join(tempDir, 'test.db')
|
||||
const logPath = path.join(tempDir, 'log')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user