mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-09 13:15:51 +08:00
refactor(infra): migrate to new infra (#5565)
This commit is contained in:
@@ -74,8 +74,14 @@ export function configureWorkspaceServices(services: ServiceCollection) {
|
||||
|
||||
export function configureTestingWorkspaceServices(services: ServiceCollection) {
|
||||
services
|
||||
.addImpl(WorkspaceListProvider, TestingLocalWorkspaceListProvider, [
|
||||
.override(WorkspaceListProvider('affine-cloud'), null)
|
||||
.override(WorkspaceFactory('affine-cloud'), null)
|
||||
.override(
|
||||
WorkspaceListProvider('local'),
|
||||
TestingLocalWorkspaceListProvider,
|
||||
[GlobalState]
|
||||
)
|
||||
.override(WorkspaceFactory('local'), TestingLocalWorkspaceFactory, [
|
||||
GlobalState,
|
||||
])
|
||||
.addImpl(WorkspaceFactory, TestingLocalWorkspaceFactory, [GlobalState]);
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user