TagSpaces is an offline, open source, document manager with tagging support
chore: added global playwrite setup
Ilian Sapundshiev9ec24c0e6821
diff --git a/playwright.unit.js b/playwright.unit.jsindex 18634e8ec..c1a169821 100644--- a/playwright.unit.js+++ b/playwright.unit.js@@ -12,4 +12,5 @@ module.exports = defineConfig({// (3 hours) Maximum time in milliseconds the whole test suite can run. Useful on CI to prevent broken setup from running too long and wasting resources.globalTimeout: process.env.CI ? 3 * 60 * 60 * 1000 : undefined,reporter: process.env.CI ? 'github' : 'list',+ globalSetup: './tests/unit/global-setup.js',});diff --git a/tests/unit/global-setup.js b/tests/unit/global-setup.jsnew file mode 100644index 000000000..906662c6f--- /dev/null+++ b/tests/unit/global-setup.js@@ -0,0 +1,9 @@+/**+ * Global setup for unit tests+ * Note: This runs in Node, not in browser context, so it can't set window properties+ * Window mocking needs to happen per-test file+ */++export default function globalSetup() {+ // Placeholder - actual setup happens in each test file+}