style: align oxfmt to trailing-comma 'all' and normalize code
All checks were successful
Build and Push Docker Image / build (push) Successful in 28s

The repo was authored prettier-style (trailing-comma 'all') but .oxfmtrc.json
was set to 'es5', so every formatted file diverged. Switch the config to 'all'
to match the existing code, ignore docs/** and **/drizzle/** (prose + generated
snapshots the formatter should not own), and reformat the source tree once for
consistency. No behavioural change; all suites green (api 60, worker 28, admin 21).
This commit is contained in:
Bas van Rossem
2026-06-17 21:36:18 +02:00
parent 1807f2b6d6
commit 70ac27ec8e
27 changed files with 48 additions and 51 deletions

View File

@@ -14,7 +14,7 @@ async function completedSession(
token: string,
activityId: number,
insoleType: string,
durationSeconds: number
durationSeconds: number,
): Promise<number> {
const startRes = await app.request('/api/sessions/start', {
method: 'POST',
@@ -47,13 +47,13 @@ describe('csv export', () => {
expect(res.status).toBe(200);
expect(res.headers.get('content-type')).toContain('text/csv');
expect(res.headers.get('content-disposition')).toBe(
'attachment; filename="insole-production-report.csv"'
'attachment; filename="insole-production-report.csv"',
);
const text = await res.text();
const lines = text.split('\n');
expect(lines[0]).toBe(
'"ID","Task","Insole Type","No. of Insoles","Date","Total Duration","Paused Duration","Start Time","End Time"'
'"ID","Task","Insole Type","No. of Insoles","Date","Total Duration","Paused Duration","Start Time","End Time"',
);
expect(lines).toHaveLength(2);
expect(lines[1]).toContain('"Frezen"');