style: format server and shared with prettier

A mechanical prettier --write over server/src, server/tests, server/scripts
and shared/src with the workspaces' .prettierrc; nothing but layout and
import order changes, and every file keeps the same set of imports. shared
is formatted throughout and its format baseline is empty. The server
baseline keeps the 35 files that Prettier would grow past their lint:size
limit (they need a split first, which is not a formatting change), and the
generated entity files stay as their generator writes them.
This commit is contained in:
Maurice
2026-10-10 21:23:37 +02:00
parent f4e518b2df
commit 724c88c201
1978 changed files with 78448 additions and 39347 deletions
+5 -2
View File
@@ -2,9 +2,10 @@
* splitAfterSemicolons: where a plugin's exec() script is cut into statements, so
* the time budget can be read between them (plugin-data.service.ts).
*/
import { describe, expect, it } from 'vitest';
import { splitAfterSemicolons } from '../../../src/nest/plugins/host/sql-script';
import { describe, expect, it } from 'vitest';
describe('splitAfterSemicolons', () => {
it('SQLSCRIPT-001 cuts after each statement and keeps every character', () => {
const sql = 'CREATE TABLE a (x); INSERT INTO a VALUES (1);\nSELECT 1';
@@ -14,7 +15,9 @@ describe('splitAfterSemicolons', () => {
});
it('SQLSCRIPT-002 leaves the semicolons in strings, quoted identifiers and comments alone', () => {
expect(splitAfterSemicolons("INSERT INTO t VALUES ('a;b', 'it''s;');")).toEqual(["INSERT INTO t VALUES ('a;b', 'it''s;');"]);
expect(splitAfterSemicolons("INSERT INTO t VALUES ('a;b', 'it''s;');")).toEqual([
"INSERT INTO t VALUES ('a;b', 'it''s;');",
]);
expect(splitAfterSemicolons('SELECT "x;y", `p;q`, [r;s] FROM t;')).toEqual(['SELECT "x;y", `p;q`, [r;s] FROM t;']);
expect(splitAfterSemicolons('SELECT 1; -- one; two\nSELECT 2;')).toEqual(['SELECT 1;', ' -- one; two\nSELECT 2;']);
expect(splitAfterSemicolons('SELECT 1 /* a; b */;')).toEqual(['SELECT 1 /* a; b */;']);