Update formatting on worker
Build and Push Spoon Images / quality (push) Successful in 1m27s
Build and Push Spoon Images / build-images (push) Successful in 7m13s

This commit is contained in:
Gabriel Brown
2026-06-24 08:40:52 -04:00
parent 5f7d56369f
commit 65aae85369
11 changed files with 130 additions and 93 deletions
@@ -3,7 +3,6 @@ import { chmod, mkdir, readFile, rm, writeFile } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { afterEach, beforeEach, describe, expect, test } from 'vitest';
type TestWorkspace = {
@@ -53,7 +52,9 @@ const writeConfig = async (
config: Record<string, unknown> | string,
) => {
const content =
typeof config === 'string' ? config : `${JSON.stringify(config, null, 2)}\n`;
typeof config === 'string'
? config
: `${JSON.stringify(config, null, 2)}\n`;
await writeFile(configPath(workspace), content);
};