等员工列表更新完成后验证店铺保存并固定运行起始版本

This commit is contained in:
黄健铭 committed 2026-12-05 02:34:07 -08:00
1 parent 7d2007955f
commit 340100ce6c
2 files changed
+10 -3

No files matched your search

+3 -2
View File
@@ -16,6 +16,7 @@ import { compare, report } from './lib/diff.js';
import { app, git, reference, fixedReference } from './lib/write-reference.mjs';
const candidate = git('rev-parse', 'HEAD');
const temp = fs.mkdtempSync(path.join(os.tmpdir(), 'ledger-write-parity-'));
let oldApp;
const day = '2026-11-20';
@@ -306,7 +307,7 @@ try {
: process.argv[only + 1].split(',');
const allHits = {},
outcomes = {};
console.log('旧版', reference, '新版', git('rev-parse', 'HEAD'));
console.log('旧版', reference, '新版', candidate);
process.env.WEB_NEXT = '1';
browser = await chromium.launch();
for (const group of groups) {
@@ -377,7 +378,7 @@ try {
const name = only < 0 ? 'all' : groups.join('-') + (process.argv.includes('--prove') ? '-negative' : '');
fs.writeFileSync(
path.join(output, name + '.json'),
redact(JSON.stringify({ reference, head: git('rev-parse', 'HEAD'), outcomes, coverage: routes }, null, 2)),
redact(JSON.stringify({ reference, head: candidate, outcomes, coverage: routes }, null, 2)),
);
} finally {
await browser?.close();