import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { readFileSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; import { dirname, resolve } from 'node:path'; const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), '../../..'); const extractBootstrapScript = () => { const html = readFileSync( resolve(repoRoot, 'templates/components/base_path_bootstrap.html'), 'utf8', ); const match = html.match(/