Initial commit
This commit is contained in:
19
packages/core-dsr/src/in-memory-data-rectify.ts
Normal file
19
packages/core-dsr/src/in-memory-data-rectify.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user