Files
msd-core/sdk/src/query/query-registry-capability.test.ts
Tom Boucher 9c92c32f6e refactor(query): deepen runtime context/native adapter/output seams (#3076)
* refactor(query): deepen runtime context, native adapter, and cli output seams

* chore(changeset): add fragment for query seam deepening continuation

* refactor(query): converge internal command-resolution imports on canonical seam

* refactor(query): remove dead seam wrappers and converge on canonical modules

* docs(architecture): update context and adr for query seam completion

* fix(query): preserve gsd-tools stderr in cli output and clarify static ws test scope

* test(query): cover whitespace stderr and null exitCode fallback
2026-05-03 16:31:48 -04:00

15 lines
561 B
TypeScript

import { describe, it, expect } from 'vitest';
import { supportsMutationCommand, supportsRawOutputCommand } from './query-policy-capability.js';
describe('query-registry-capability', () => {
it('reports mutation command capability', () => {
expect(supportsMutationCommand('state.update')).toBe(true);
expect(supportsMutationCommand('state.json')).toBe(false);
});
it('reports raw output capability', () => {
expect(supportsRawOutputCommand('state.load')).toBe(true);
expect(supportsRawOutputCommand('state.json')).toBe(false);
});
});