mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 00:20:07 +00:00
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:
@@ -9,17 +9,14 @@
|
||||
* "how far along is the move" to "nothing fell out of it": a method deleted without a
|
||||
* replacement, or a new *.rpc.ts class that no one listed in allRpcControllers().
|
||||
*/
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { PluginRpcHost } from '../../../src/nest/plugins/host/rpc-host';
|
||||
import { createTestPluginRegistry } from '../../../src/nest-rpc/rpc-kit/testing';
|
||||
import { PluginRpcRegistryService } from '../../../src/nest-rpc/rpc-kit/registry.service';
|
||||
import {
|
||||
KNOWN_METHODS,
|
||||
KNOWN_PERMISSIONS,
|
||||
UNCONDITIONAL_METHODS,
|
||||
} from '../../../src/nest/plugins/protocol/envelope';
|
||||
import { createTestPluginRegistry } from '../../../src/nest-rpc/rpc-kit/testing';
|
||||
import { PluginRpcHost } from '../../../src/nest/plugins/host/rpc-host';
|
||||
import { KNOWN_METHODS, KNOWN_PERMISSIONS, UNCONDITIONAL_METHODS } from '../../../src/nest/plugins/protocol/envelope';
|
||||
import { allRpcControllers, makeDeps } from '../../helpers/rpc-host-deps';
|
||||
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
/** Reads the router's private dispatch map. That map IS the thing under test. */
|
||||
const boundMethods = (host: PluginRpcHost): Set<string> =>
|
||||
new Set((host as unknown as { methods: Map<string, unknown> }).methods.keys());
|
||||
@@ -62,9 +59,11 @@ describe('plugin RPC coverage ledger', () => {
|
||||
// The rollout's closing move: the registry service now FAILS APP BOOT when a
|
||||
// KNOWN_METHOD has no decorated owner, instead of letting it surface as a runtime
|
||||
// PERMISSION_DENIED nobody can explain.
|
||||
const options = (new PluginRpcRegistryService({} as never, {} as never) as unknown as {
|
||||
options: { requireTotalCoverage?: boolean };
|
||||
}).options;
|
||||
const options = (
|
||||
new PluginRpcRegistryService({} as never, {} as never) as unknown as {
|
||||
options: { requireTotalCoverage?: boolean };
|
||||
}
|
||||
).options;
|
||||
expect(options.requireTotalCoverage).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user