Minor refinements & tuning to system structure

This commit is contained in:
2025-12-23 15:57:05 +08:00
parent 6c63f2d803
commit d06a58cf93
8 changed files with 394 additions and 87 deletions

View File

@@ -75,13 +75,6 @@ describe('DollsService', () => {
const createDto = { name: 'New Doll' };
const userId = 'user-1';
// Mock the transaction callback to return the doll
jest
.spyOn(prismaService, '$transaction')
.mockImplementation(async (callback) => {
return callback(prismaService);
});
await service.create(userId, createDto);
expect(prismaService.doll.create).toHaveBeenCalledWith({