修正 dev:all 摘要表输出时序

改用无引号纯文本表格显示启动服务和实际地址。

等待 Tauri Running DevCommand 后再打印摘要。

补充启动器输出转发、回归测试和开发运维说明。
This commit is contained in:
2026-10-01 19:03:52 +08:00
parent e9b3e2b531
commit c911a338f9
5 changed files with 113 additions and 11 deletions
+15
View File
@@ -11,6 +11,7 @@ import {
buildRootDevArgs,
buildStartupSummary,
isSharedRootStackReady,
renderStartupTable,
runDevAll,
validateDevAllArgs,
} from './dev-all.mjs';
@@ -91,6 +92,9 @@ describe('dev:all 参数和共享开发栈合同', () => {
expect(options.shell).toBe(process.platform === 'win32');
expect(options.windowsHide).toBe(process.platform === 'win32');
expect(options.detached).toBe(process.platform !== 'win32');
expect(
buildManagedSpawnOptions(process.env, { captureOutput: true }).stdio,
).toEqual(['inherit', 'pipe', 'pipe']);
});
test('按最终端口构造完整启动摘要表', () => {
@@ -118,6 +122,17 @@ describe('dev:all 参数和共享开发栈合同', () => {
);
});
test('渲染摘要表时不输出字符串引号', () => {
const rows = buildStartupSummary(makeReadyState(), {
url: 'http://127.0.0.1:3080/',
});
const table = renderStartupTable(rows);
expect(table).not.toContain("'");
expect(table).toContain('| Web 主站');
expect(table).toContain('http://127.0.0.1:3080/');
});
test('仅接受同一工作树、实例、数据库和 data dir 的完整栈', () => {
const root = resolve('fixture-root');
const ready = makeReadyState(root);