Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions apps/website/src/components/docs/open-in-cockpit.spec.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions apps/website/src/components/landing/Differentiator.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,6 @@ vi.mock('../ui/Section', () => ({
vi.mock('../ui/Eyebrow', () => ({
Eyebrow: ({ children }: { children: React.ReactNode }) => <span>{children}</span>,
}));
vi.mock('@ngaf/design-tokens', () => ({
tokens: {
colors: {
accent: '#7c3aed',
textPrimary: '#111827',
textSecondary: '#6b7280',
textMuted: '#9ca3af',
},
surfaces: {
border: '#e5e7eb',
},
typography: {
h2: { family: 'sans-serif', size: '2rem', line: '1.2' },
bodyLg: { family: 'sans-serif', size: '1.125rem', line: '1.6' },
body: { family: 'sans-serif', size: '1rem', line: '1.5' },
fontMono: 'monospace',
},
},
}));

import { trackCtaClick } from '../../lib/analytics/client';

Expand Down
5 changes: 4 additions & 1 deletion apps/website/src/lib/docs.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { describe, expect, it } from 'vitest';
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import { getAllDocSlugs, getDocBySlug, getDocMetadata } from './docs';
import { allDocsPages } from './docs-config';
import { getCanonicalUrl, getSitemapRoutes } from './site-metadata';
Expand All @@ -12,7 +13,9 @@ function findInternalDocsLinks(content: string): string[] {
.filter((href): href is string => Boolean(href));
}

const contentRoot = path.join(process.cwd(), 'apps', 'website', 'content', 'docs');
// Resolved relative to this spec file so the path stays correct regardless of
// the runner's cwd (apps/website/ vs workspace root).
const contentRoot = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', '..', 'content', 'docs');

function walkMdxFiles(dir: string): string[] {
return fs.readdirSync(dir).flatMap((entry) => {
Expand Down
Loading