Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

517 B
Raw Blame
import { execSync } from 'node:child_process'
import path from 'node:path'
import { fileURLToPath } from 'node:url'

export default async function globalTeardown() {
  const e2eDir = path.dirname(fileURLToPath(import.meta.url))
  const teardownScript = path.join(e2eDir, 'docker-teardown.sh')
  try {
    execSync(`bash "${teardownScript}"`, {
      stdio: 'inherit',
      cwd: path.join(e2eDir, '../../..'),
    })
  } catch {
    console.warn('[e2e] Teardown: some containers may have already been stopped')
  }
}