import { describe, it, expect } from 'vitest';
import * as fs from 'fs';
import * as path from 'path';

describe('MDXContent Mapping', () => {
  it('should have productTabs in the switch statement to prevent Unknown Block Type errors', () => {
    const filePath = path.join(process.cwd(), 'components/MDXContent.tsx');
    const fileContent = fs.readFileSync(filePath, 'utf-8');

    // Check if the switch case for productTabs exists
    expect(fileContent).toContain("case 'productTabs':");
    expect(fileContent).toContain('<ProductTechnicalData');
  });
});
