c486750b2a
16 suites were disabled via testPathIgnorePatterns due to two root causes: lib0 ESM not transformed (the @hocuspocus/server -> lib0/decoding.js chain) and stock 'should be defined' specs built via Test.createTestingModule without providers. Add lib0 to transformIgnorePatterns; convert the 14 DI placeholders to direct new X(...) instantiation with stub deps (keeping a real construct smoke test); re-enable the suites. Also updates the public-share limiter test to assert the fail-closed behavior from #62 (surfaced now that the suite runs). Full server suite: 67 passed, 689 tests. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
24 lines
666 B
TypeScript
24 lines
666 B
TypeScript
import { CommentService } from './comment.service';
|
|
|
|
// Direct instantiation with stub deps. The Test.createTestingModule form failed
|
|
// to resolve the @InjectQueue() tokens at compile(), and this smoke test only
|
|
// needs the service to construct.
|
|
describe('CommentService', () => {
|
|
let service: CommentService;
|
|
|
|
beforeEach(() => {
|
|
service = new CommentService(
|
|
{} as any, // commentRepo
|
|
{} as any, // pageRepo
|
|
{} as any, // wsService
|
|
{} as any, // collaborationGateway
|
|
{} as any, // generalQueue
|
|
{} as any, // notificationQueue
|
|
);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(service).toBeDefined();
|
|
});
|
|
});
|