refactor(tests): update global setup and teardown functions to accept FullConfig parameter for better integration with Playwright's testing framework

This commit is contained in:
snomiao
2025-09-12 00:49:12 +00:00
parent 450f156d53
commit ad111f007a
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
import type { FullConfig } from '@playwright/test'
import { preprocessLitegraph } from './i18nSetup'
export default async function globalSetupWithI18n() {
export default async function globalSetup(config: FullConfig) {
await preprocessLitegraph()
}

View File

@@ -1,5 +1,7 @@
import { FullConfig } from '@playwright/test'
import { restoreLitegraph } from './i18nSetup'
export default async function globalTeardownWithI18n() {
export default async function globalTeardown(config: FullConfig) {
await restoreLitegraph()
}