This commit is contained in:
07akioni
2026-07-30 20:02:08 +08:00
parent af01552789
commit 724c5e877e

View File

@@ -125,7 +125,7 @@ afterEach(() => {
while (roots.length) rmSync(roots.pop()!, { recursive: true, force: true }) while (roots.length) rmSync(roots.pop()!, { recursive: true, force: true })
}) })
describe('gen-cordis-catalog collectEvents', () => { describe('gen-cordis-catalog collectEvents', { timeout: 30_000 }, () => {
it('extracts a well-formed event with its @mode and JSDoc', () => { it('extracts a well-formed event with its @mode and JSDoc', () => {
const events = collectEvents(make( const events = collectEvents(make(
' /**\n * A thing happened.\n * @param id - which thing.\n * @mode emit\n */\n \'fix/happened\'(id: string): void', ' /**\n * A thing happened.\n * @param id - which thing.\n * @mode emit\n */\n \'fix/happened\'(id: string): void',
@@ -239,7 +239,7 @@ describe('gen-cordis-catalog collectEvents', () => {
}) })
}) })
describe('gen-cordis-catalog collectServices', () => { describe('gen-cordis-catalog collectServices', { timeout: 30_000 }, () => {
const WELL_FORMED = `/** Fixture service. */ const WELL_FORMED = `/** Fixture service. */
export class FixService { export class FixService {
/** /**