fix(test): stream large report snapshot SQL
Independent Staging Quality Gate / validate (push) Successful in 11m8s
Independent Staging Quality Gate / publish (push) Successful in 3m52s

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
jesse-ux
2026-09-23 18:51:08 +08:00
co-authored by Claude Code
parent 451a58089a
commit 018b2b4883
8 changed files with 148 additions and 6 deletions
@@ -33,3 +33,12 @@ test("postgres fixture start failure and stop both release the compose-network s
/stop\(\) \{[\s\S]*releasePort\(portReservation\)[\s\S]*slot\.release\(\)/,
);
});
test("large PostgreSQL scripts use stdin without changing shared -c helpers", () => {
assert.match(fixtureSource, /psqlScriptAs\(role, password, sql\)/);
assert.match(fixtureSource, /psqlScriptAs[\s\S]*input: sql/);
assert.match(fixtureSource, /psqlScriptAs[\s\S]*maxBuffer: 16 \* 1024 \* 1024/);
assert.match(fixtureSource, /psqlScriptAs[\s\S]*"--single-transaction"[\s\S]*"-f"[\s\S]*"-"/);
assert.match(fixtureSource, /psql\(sql\)[\s\S]*"-Atc",\s*sql/);
assert.match(fixtureSource, /psqlAs\(role, password, sql\)[\s\S]*"-Atc",\s*sql/);
});