test(ci): pin release install step count

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
jinjing.zzj 2026-08-20 22:45:55 +08:00
parent e4fd351490
commit f88f8a0780

View file

@ -407,7 +407,7 @@ describe('package scripts', () => {
/ {6}- name: 'Install Dependencies'[\s\S]*?(?=\n {6}- name: '|\n {4}[A-Za-z0-9_-]+:|$)/g,
) || [];
expect(installSteps.length).toBeGreaterThan(0);
expect(installSteps.length).toBe(5);
for (const installStep of installSteps) {
expect(installStep).toContain(
'npm ci --ignore-scripts --no-audit --progress=false',