Browse Source

test(typert): allow catalog analysis under coverage

Tianyi Cui 2 months ago
parent
commit
49678f38ae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/typert/generator/tests/cordis-catalog-contract.spec.ts

+ 2 - 2
packages/typert/generator/tests/cordis-catalog-contract.spec.ts

@@ -125,7 +125,7 @@ afterEach(() => {
   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', () => {
     const events = collectEvents(make(
       '    /**\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. */
 export class FixService {
   /**