mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-19 11:34:09 +02:00
fix: require bounded loop-status exit-code watch
This commit is contained in:
parent
fbd441b448
commit
7b03a60503
3 changed files with 13 additions and 0 deletions
|
|
@ -444,6 +444,13 @@ function runTests() {
|
|||
assert.strictEqual(payload.errors.length, 1);
|
||||
})) passed++; else failed++;
|
||||
|
||||
if (test('exit-code mode rejects unbounded watch mode', () => {
|
||||
const result = run(['--watch', '--exit-code']);
|
||||
|
||||
assert.strictEqual(result.code, 1);
|
||||
assert.match(result.stderr, /--exit-code with --watch requires --watch-count/);
|
||||
})) passed++; else failed++;
|
||||
|
||||
if (test('getStatusExitCode prioritizes attention signals over scan errors', () => {
|
||||
const payload = {
|
||||
errors: [{ message: 'unreadable' }],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue