import { Injectable } from '@nexus-ioc/core'; import { Test } from '@nexus-ioc/testing'; describe('AppModule', () => { it('should create instance', async () => { @Injectable() class AppService {} const appModule = await Test.createModule({ providers: [AppService], }).compile(); const appService = await appModule.get<AppService>(AppService); expect(appService).toBeInstanceOf(AppService); }); });
There was an error while loading. Please reload this page.