接入 ESLint 与 Prettier 并加入 CI 静态门禁
前端验证 / verify (push) Failing after 15m2s

This commit is contained in:
cieanyau committed 2026-11-07 01:24:36 +08:00
1 parent 339df89fcf
commit 651c36367f
33 files changed
+1420 -40

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
# 浏览器端到端验收
先在项目根目录执行 `npm ci` 安装锁定依赖,执行 `npm run build`,再执行 `npm test`。
先在项目根目录执行 `npm ci` 安装锁定依赖,执行 `npm run check`、`npm run lint`、
`npm run format:check` 和 `npm run build`,再执行 `npm test`。
测试使用 Node 自带的 `node:test`。浏览器场景直接操作实际构建后的页面,不替换项目内部模块;
规则适配与随机密码另有公开模块入口的隔离失败模式测试,不能代替浏览器验收。
+1 -1
View File
@@ -260,7 +260,7 @@ export async function scenario(t, options, exercise) {
const screenshot = `${t.name.replace(/[^a-z0-9]+/gi, "-").toLowerCase()}.png`;
let failure;
let observed;
let requests = [];
let requests;
try {
observed = await exercise(page);
} catch (error) {