Skip to content

fix(ci): unbreak main — syntax error in adminDisputeController test#44

Merged
ogazboiz merged 4 commits into
mainfrom
fix/ci-admindispute-test-syntax
Jul 1, 2026
Merged

fix(ci): unbreak main — syntax error in adminDisputeController test#44
ogazboiz merged 4 commits into
mainfrom
fix/ci-admindispute-test-syntax

Conversation

@ogazboiz

@ogazboiz ogazboiz commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

What

Main CI has been red on the Lint step (which also fails tsc build + the test parse), blocking every open backend PR.

Cause

src/__tests__/adminDisputeController.test.ts:527 ended .set(bearer(TEST_USER)) with a stray ;, orphaning the next line .send({})Parsing error: Declaration or statement expected at 528:6. A bad merge landed it on main.

Fix

Remove the semicolon so .set(...).send({}) chains. One line; it was the only parse error (the rest of the lint output is non-blocking no-console warnings). This greens Lint + build + test on main.

…Controller test

adminDisputeController.test.ts:527 ended '.set(bearer(TEST_USER))' with a
semicolon, orphaning the following '.send({})' as a dangling expression. That
produced 'Parsing error: Declaration or statement expected' at 528:6, which
broke the Lint step (and tsc build + the test parse) on main, reding the whole
backend CI and blocking every open PR. Chain the calls correctly.
…ttierrc

An empty "prettier": {} block in package.json took precedence over .prettierrc
(printWidth 100), so eslint-plugin-prettier enforced default 80-width formatting
against files that were formatted to 100, producing ~hundreds of prettier/prettier
lint errors across the test suite (while the standalone `prettier --check` — which
resolved .prettierrc — passed). Removing the empty override makes both eslint and
prettier resolve .prettierrc consistently.
…style

.prettierrc declared singleQuote:true + printWidth:100, but the entire codebase
is formatted to prettier defaults (double quotes, 80 width) — the .prettierrc was
never actually applied. Its presence made eslint-plugin-prettier enforce a style
the code doesn't use, generating hundreds of prettier/prettier lint errors. With
no .prettierrc (and no package.json prettier override), eslint + prettier both use
the defaults the code already matches.
@ogazboiz ogazboiz merged commit a5cca34 into main Jul 1, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants