feat: add CLI command for importing and exporting Pocket ID data (#998)

Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Elias Schneider
2025-11-26 10:38:15 +01:00
committed by GitHub
parent e306d6eb58
commit 39c1f93756
56 changed files with 3276 additions and 823 deletions

View File

@@ -1,9 +1,9 @@
import playwrightConfig from '../playwright.config';
export async function cleanupBackend(skipSeed = false) {
export async function cleanupBackend({ skipSeed = false, skipLdapSetup = false } = {}) {
const url = new URL('/api/test/reset', playwrightConfig.use!.baseURL);
if (process.env.SKIP_LDAP_TESTS === 'true' || skipSeed) {
if (process.env.SKIP_LDAP_TESTS === 'true' || skipSeed || skipLdapSetup) {
url.searchParams.append('skip-ldap', 'true');
}