Skip to content

Commit

Permalink
fix(docs-infra): extend the timeout for jasmine tests of mermaid (ang…
Browse files Browse the repository at this point in the history
…ular#57948)

Extend the timeout because mermaid takes too long for the default.

PR Close angular#57948
  • Loading branch information
josephperrott authored and atscott committed Sep 24, 2024
1 parent 03ac3c2 commit dbf15c8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ describe('markdown to html', () => {
let markdownDocument: DocumentFragment;

beforeAll(async () => {
// Extend the timeout interval tyo 15 seconds because we were seeing issues with not being able to run marked
// within the default timeframe.
jasmine.DEFAULT_TIMEOUT_INTERVAL = 15000;
const markdownContent = await readFile(runfiles.resolvePackageRelative('./mermaid.md'), {
encoding: 'utf-8',
});
Expand All @@ -25,4 +28,8 @@ describe('markdown to html', () => {
const svgs = markdownDocument.querySelectorAll('svg');
expect(svgs.length).toBe(2);
});

afterAll(() => {
jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000;
});
});

0 comments on commit dbf15c8

Please sign in to comment.