Skip to content

Commit 7111953

Browse files
committed
docs(testing): update knowledge.md with DbOperations name
1 parent 521958d commit 7111953

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/src/testing/knowledge.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Mock database objects for testing. No real database needed.
44

5-
## TestableDb
5+
## DbOperations
66

7-
`TestableDb` is a minimal interface in `@codebuff/common/types/contracts/database`. Both the real `CodebuffPgDatabase` and these mocks satisfy it, so you can pass mocks directly to functions without `as any`.
7+
`DbOperations` is a minimal interface in `@codebuff/common/testing/mock-db`. Both the real `CodebuffPgDatabase` and these mocks satisfy it, so you can pass mocks directly to functions without `as any`.
88

99
## Utilities
1010

@@ -83,7 +83,7 @@ const mockLogger = createMockLogger()
8383

8484
1. Import from `@codebuff/common/testing/mock-db`
8585
2. Create in `beforeEach()` for fresh state
86-
3. Pass to functions that take `TestableDb`
86+
3. Pass to functions that take `DbOperations`
8787

8888
## Query patterns
8989

0 commit comments

Comments
 (0)