mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
- Rename dragAndDrop to dragDrop (7 occurrences) - Add override modifiers in SidebarTab.ts (4 fixes) - Remove .ts import extensions in actionbar.spec.ts - Prefix unused variables with underscore (9 files) - Fix ESLint import() type annotation in globals.d.ts Reduces typecheck:browser errors from 229 to 215 Amp-Thread-ID: https://ampcode.com/threads/T-019c1787-c781-761d-b95a-4844e909e64c Co-authored-by: Amp <amp@ampcode.com>
22 lines
608 B
TypeScript
22 lines
608 B
TypeScript
import type { FullConfig } from '@playwright/test'
|
|
import dotenv from 'dotenv'
|
|
|
|
import { backupPath } from './utils/backupUtils'
|
|
|
|
dotenv.config()
|
|
|
|
export default function globalSetup(_config: FullConfig) {
|
|
if (!process.env.CI) {
|
|
if (process.env.TEST_COMFYUI_DIR) {
|
|
backupPath([process.env.TEST_COMFYUI_DIR, 'user'])
|
|
backupPath([process.env.TEST_COMFYUI_DIR, 'models'], {
|
|
renameAndReplaceWithScaffolding: true
|
|
})
|
|
} else {
|
|
console.warn(
|
|
'Set TEST_COMFYUI_DIR in .env to prevent user data (settings, workflows, etc.) from being overwritten'
|
|
)
|
|
}
|
|
}
|
|
}
|