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

@@ -91,7 +91,7 @@ function renderStopwatch() {
return render(
<QueryClientProvider client={queryClient}>
<Stopwatch />
</QueryClientProvider>
</QueryClientProvider>,
);
}
@@ -105,17 +105,17 @@ describe('Stopwatch', () => {
mockedUseActivities.mockReturnValue(query<ReturnType<typeof useActivities>>([FREZEN, PRINTEN]));
mockedUseActiveSessions.mockReturnValue(query<ReturnType<typeof useActiveSessions>>([]));
mockedUseStartSession.mockReturnValue(
mutation<ReturnType<typeof useStartSession>>(startMutate)
mutation<ReturnType<typeof useStartSession>>(startMutate),
);
mockedUseStopSession.mockReturnValue(mutation<ReturnType<typeof useStopSession>>(stopMutate));
mockedUseDiscardSession.mockReturnValue(
mutation<ReturnType<typeof useDiscardSession>>(discardMutate)
mutation<ReturnType<typeof useDiscardSession>>(discardMutate),
);
mockedUsePauseSession.mockReturnValue(
mutation<ReturnType<typeof usePauseSession>>(pauseMutate)
mutation<ReturnType<typeof usePauseSession>>(pauseMutate),
);
mockedUseResumeSession.mockReturnValue(
mutation<ReturnType<typeof useResumeSession>>(resumeMutate)
mutation<ReturnType<typeof useResumeSession>>(resumeMutate),
);
});
@@ -189,7 +189,7 @@ describe('Stopwatch', () => {
const user = userEvent.setup();
// Recover an active session so the screen renders the running UI.
mockedUseActiveSessions.mockReturnValue(
query<ReturnType<typeof useActiveSessions>>([activeSession()])
query<ReturnType<typeof useActiveSessions>>([activeSession()]),
);
renderStopwatch();
@@ -197,7 +197,7 @@ describe('Stopwatch', () => {
await user.click(cancel);
expect(
screen.getByRole('button', { name: 'Nogmaals tikken ter bevestiging' })
screen.getByRole('button', { name: 'Nogmaals tikken ter bevestiging' }),
).toBeInTheDocument();
await user.click(screen.getByRole('button', { name: 'Nogmaals tikken ter bevestiging' }));
@@ -208,7 +208,7 @@ describe('Stopwatch', () => {
it('pauses via the server when the display is tapped while running', async () => {
const user = userEvent.setup();
mockedUseActiveSessions.mockReturnValue(
query<ReturnType<typeof useActiveSessions>>([activeSession()])
query<ReturnType<typeof useActiveSessions>>([activeSession()]),
);
renderStopwatch();
@@ -225,7 +225,7 @@ describe('Stopwatch', () => {
mockedUseActiveSessions.mockReturnValue(
query<ReturnType<typeof useActiveSessions>>([
activeSession({ paused_at: new Date().toISOString(), paused_seconds: 30 }),
])
]),
);
renderStopwatch();
@@ -241,7 +241,7 @@ describe('Stopwatch', () => {
mockedUseActiveSessions.mockReturnValue(
query<ReturnType<typeof useActiveSessions>>([
activeSession({ paused_at: new Date().toISOString(), paused_seconds: 30 }),
])
]),
);
renderStopwatch();