/** * @vitest-environment happy-dom */ import { describe, it, expect, beforeEach } from 'vitest'; import { render } from '@testing-library/react'; import React from 'react'; import { Footer } from '../../../components/parts/Footer.js'; import { Window } from 'happy-dom'; describe('Footer', () => { beforeEach(() => { // Setup happy-dom const window = new Window(); globalThis.window = window as any; globalThis.document = window.document as any; }); const mockActions = [ { key: 'enter', description: 'Select' }, { key: 'esc', description: 'Back' }, { key: 'h', description: 'Help' }, ]; it('should render all actions', () => { const { getByText } = render(