mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 07:30:11 +00:00
* Restore backend state when Playwright test finishes. Resolve #1094 * Add warning when env var not set * Rename and replace with scaffolding option for models dir * Rename * Define another env var [skip ci] * Fix paths [skip ci] * Update README.md --------- Co-authored-by: Chenlei Hu <huchenlei@proton.me>
13 lines
380 B
TypeScript
13 lines
380 B
TypeScript
import { FullConfig } from '@playwright/test'
|
|
import { restorePath } from './utils/backupUtils'
|
|
import dotenv from 'dotenv'
|
|
|
|
dotenv.config()
|
|
|
|
export default function globalTeardown(config: FullConfig) {
|
|
if (!process.env.CI && process.env.TEST_COMFYUI_DIR) {
|
|
restorePath([process.env.TEST_COMFYUI_DIR, 'user'])
|
|
restorePath([process.env.TEST_COMFYUI_DIR, 'models'])
|
|
}
|
|
}
|