Skip to content

Commit 01a267c

Browse files
committed
test(seo): allow cold lazy page loads under the full parallel suite
1 parent 88375e4 commit 01a267c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/__tests__/seo.test.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111
* and <meta name="description"> for Spanish and Portuguese
1212
*/
1313

14-
import { render, screen, waitFor } from '@testing-library/react';
14+
import { configure, render, screen, waitFor } from '@testing-library/react';
1515
import { describe, it, expect, beforeEach } from 'vitest';
1616
import i18n from '../i18n';
1717
import { canonicalUrl, hreflangAlternates, SITE_ORIGIN } from '../utils/seo';
1818

19+
// Lazy page chunks load cold on the first render; under a full parallel run
20+
// that can exceed Testing Library's 1s default for findBy* lookups.
21+
configure({ asyncUtilTimeout: 5000 });
22+
1923
// ─── Pure utility tests ───────────────────────────────────────────────────────
2024

2125
describe('canonicalUrl', () => {

0 commit comments

Comments
 (0)