Attempt: fix the CI errors
This commit is contained in:
parent
dc2338bb83
commit
2670c670f6
3 changed files with 13 additions and 3 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
5
compat-tests/fixtures/react18/package/tsconfig.json
Normal file
5
compat-tests/fixtures/react18/package/tsconfig.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"jsx": "react"
|
||||
}
|
||||
}
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue