20 lines
564 B
TypeScript
20 lines
564 B
TypeScript
import type { IDataRectify } from "./data-rectify.interface";
|
|
|
|
/**
|
|
* Volatile in-memory IDataRectify. Accepts calls but makes no changes.
|
|
*
|
|
* Used in dev-seed and storybook contexts where Payload is unavailable.
|
|
* Not a recording double — use RecordingDataRectify from @repo/core-testing for
|
|
* call-assertion in unit tests.
|
|
*/
|
|
export class InMemoryDataRectify implements IDataRectify {
|
|
async updateSubjectField(
|
|
_subjectId: string,
|
|
_collection: string,
|
|
_field: string,
|
|
_value: unknown,
|
|
): Promise<void> {
|
|
// no-op in dev-seed
|
|
}
|
|
}
|