backend-test-utils: update to use ServiceFactory.create
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ export class ServiceFactoryTester<TService, TScope extends 'root' | 'plugin'> {
|
||||
options?: ServiceFactoryTesterOptions,
|
||||
) {
|
||||
const subjectFactory = typeof subject === 'function' ? subject() : subject;
|
||||
const registry = new ServiceRegistry([
|
||||
const registry = ServiceRegistry.create([
|
||||
...defaultServiceFactories,
|
||||
...(options?.dependencies?.map(f =>
|
||||
typeof f === 'function' ? f() : f,
|
||||
|
||||
Reference in New Issue
Block a user