From 2670c670f6e42df7d286130ca95acbe6eda5ff1e Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sun, 30 Jul 2023 17:50:21 +0200 Subject: [PATCH] Attempt: fix the CI errors --- .github/workflows/ci.yml | 2 +- compat-tests/fixtures/react18/package/tsconfig.json | 5 +++++ compat-tests/utils/testUtils.ts | 9 +++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 compat-tests/fixtures/react18/package/tsconfig.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3065474..5b32f68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,4 +114,4 @@ jobs: # This will test whether `npm install`/`yarn install` can actually run on each compatibility test fixture. See `compat-tests/README.md` for more info. - run: yarn workspace @theatre/compat-tests run install-fixtures --verbose # after that, we run the jest tests for each fixture - - run: yarn test:compat:run + - run: yarn test:compat:run --verbose diff --git a/compat-tests/fixtures/react18/package/tsconfig.json b/compat-tests/fixtures/react18/package/tsconfig.json new file mode 100644 index 0000000..986627d --- /dev/null +++ b/compat-tests/fixtures/react18/package/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "jsx": "react" + } +} diff --git a/compat-tests/utils/testUtils.ts b/compat-tests/utils/testUtils.ts index c7e64b6..e3e1f61 100644 --- a/compat-tests/utils/testUtils.ts +++ b/compat-tests/utils/testUtils.ts @@ -103,13 +103,18 @@ async function testTheatreOnPage(page: Page, {url}: {url: string}) { try { await page.goto(url, { waitUntil: 'domcontentloaded', - timeout: 30000, + timeout: 1000 * 60 * 2, }) // give the console listener 3 seconds to resolve, otherwise fail the test await Promise.race([ d.promise, - new Promise((_, reject) => setTimeout(() => reject('Timed out'), 30000)), + new Promise((_, reject) => + setTimeout( + () => reject('Did not intercept any test-related console logs'), + 30000, + ), + ), ]) } finally { page.off('console', processConsoleEvents)