import { TestingModule, Test } from "@nestjs/testing"; import { InMemorySessionsModule } from "./"; describe("InMemorySessionsModule Tests", () => { let module: TestingModule | null = null; beforeAll(async () => { module = await Test.createTestingModule({ imports: [InMemorySessionsModule.forRoot()], }).compile(); }); it("should get InMemorySessionService by injection Key", () => { expect(module).toBeDefined(); const service = module?.get("@apihub24/session_service"); expect(service).toBeDefined(); }); });