mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2026-01-02 21:24:22 +01:00
refactor: update testing layers and configurations
- Changed the setup file path in vitest configuration for better organization. - Refactored the EventBus implementation to streamline event handling. - Updated various test files to utilize new testing layers for improved clarity and maintainability. - Introduced new utility layers for file system and persistent service mocks to enhance test reliability. - Enhanced the platform layer to include necessary services for testing environments.
This commit is contained in:
@@ -29,7 +29,9 @@ const LayerImpl = Effect.gen(function* () {
|
||||
|
||||
if (Either.isLeft(branches)) {
|
||||
return {
|
||||
response: [],
|
||||
response: {
|
||||
success: false,
|
||||
},
|
||||
status: 200,
|
||||
} as const satisfies ControllerResponse;
|
||||
}
|
||||
@@ -59,7 +61,9 @@ const LayerImpl = Effect.gen(function* () {
|
||||
|
||||
if (Either.isLeft(commits)) {
|
||||
return {
|
||||
response: [],
|
||||
response: {
|
||||
success: false,
|
||||
},
|
||||
status: 200,
|
||||
} as const satisfies ControllerResponse;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user