backend-test-utils: update to use ServiceFactory.create

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-08-30 17:48:59 +02:00
parent b7ceb86a07
commit e1c4b4494e
@@ -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,