Ensure that root scoped services cannot accept (at a type level) plugin scoped deps

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-09-06 11:42:51 +02:00
parent cfa5a343ec
commit ba4506076e
5 changed files with 10 additions and 6 deletions
@@ -125,6 +125,7 @@ describe('ServiceRegistry', () => {
it('should not be possible for root scoped services to depend on plugin scoped services', async () => {
const factory = createServiceFactory({
// @ts-expect-error
service: ref2,
deps: { pluginDep: ref1 },
async factory() {