mirror of
https://github.com/cloud-shuttle/leptos-shadcn-ui.git
synced 2026-01-04 20:12:55 +00:00
17 lines
484 B
TypeScript
17 lines
484 B
TypeScript
import { FullConfig } from '@playwright/test';
|
|
|
|
async function globalTeardown(config: FullConfig) {
|
|
console.log('🧹 Cleaning up Playwright test environment...');
|
|
|
|
// Force exit after tests complete to prevent hanging
|
|
// This ensures the process doesn't wait for the HTML server
|
|
setTimeout(() => {
|
|
console.log('🚪 Auto-closing test environment...');
|
|
process.exit(0);
|
|
}, 1000);
|
|
|
|
console.log('✅ Global teardown complete');
|
|
}
|
|
|
|
export default globalTeardown;
|