mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
- Added `dev:test` script to package.json for streamlined testing without file watching. - Introduced `kill-test-servers` script to ensure no existing servers are running on test ports before executing tests. - Enhanced Playwright configuration to use mock agent for tests, ensuring consistent API responses and disabling rate limiting. - Updated various test files to include authentication steps and handle login screens, improving reliability and reducing flakiness in tests. - Added `global-setup` for e2e tests to ensure proper initialization before test execution.
13 lines
347 B
TypeScript
13 lines
347 B
TypeScript
/**
|
|
* Global setup for all e2e tests
|
|
* This runs once before all tests start
|
|
*/
|
|
|
|
async function globalSetup() {
|
|
// Note: Server killing is handled by the pretest script in package.json
|
|
// GlobalSetup runs AFTER webServer starts, so we can't kill the server here
|
|
console.log('[GlobalSetup] Setup complete');
|
|
}
|
|
|
|
export default globalSetup;
|