diff --git a/reactrebuild0825/tests/global-setup.ts b/reactrebuild0825/tests/global-setup.ts index 2cda8e3..7c67fd6 100644 --- a/reactrebuild0825/tests/global-setup.ts +++ b/reactrebuild0825/tests/global-setup.ts @@ -2,7 +2,7 @@ import { chromium, FullConfig } from '@playwright/test'; import fs from 'fs'; import path from 'path'; -async function globalSetup(config: FullConfig) { +async function globalSetup(_config: FullConfig) { // Ensure screenshots directory exists const screenshotsDir = path.join(process.cwd(), 'screenshots'); if (!fs.existsSync(screenshotsDir)) { @@ -26,7 +26,7 @@ async function globalSetup(config: FullConfig) { await page.goto('http://localhost:5173', { waitUntil: 'networkidle' }); console.log('✅ Application pre-warmed successfully'); } catch (error) { - console.warn('⚠️ Could not pre-warm application:', error.message); + console.warn('⚠️ Could not pre-warm application:', (error as Error).message); } finally { await context.close(); await browser.close(); diff --git a/reactrebuild0825/tests/test-runner.ts b/reactrebuild0825/tests/test-runner.ts index 017ec3d..e293788 100644 --- a/reactrebuild0825/tests/test-runner.ts +++ b/reactrebuild0825/tests/test-runner.ts @@ -151,7 +151,7 @@ class TestRunner { try { const command = `npx playwright test tests/${suite.file} ${playwrightOptions}`; - const { stdout, stderr } = await execAsync(command); + const { stdout } = await execAsync(command); this.results[suite.name] = { success: true,