/**
 * Main accessibility test runner
 * 
 * This file is used by Jest to run the accessibility tests
 */

const { execSync } = require('child_process');
const path = require('path');

describe('Accessibility Tests', () => {
  test('Run accessibility tests', () => {
    try {
      // Run the accessibility tests
      const scriptPath = path.join(__dirname, 'accessibility', 'run-accessibility-tests.sh');
      execSync(`bash ${scriptPath}`, { stdio: 'inherit' });
    } catch (error) {
      // If the tests fail, the script will exit with a non-zero code
      // Jest will catch this and mark the test as failed
      throw new Error('Accessibility tests failed');
    }
  });
});
