import { render, screen } from '@testing-library/react'; import { AccessProviderMock } from '../component/providers/AccessProvider/AccessProviderMock'; import { useChangeRequestsEnabled } from './useChangeRequestsEnabled'; import { FC } from 'react'; import { testServerRoute, testServerSetup } from '../utils/testServer'; import { SKIP_CHANGE_REQUEST, ADMIN, } from '../component/providers/AccessProvider/permissions'; const project = 'project'; const environment = 'production'; const TestComponent: FC = () => { const { isChangeRequestConfigured } = useChangeRequestsEnabled(project); const string = isChangeRequestConfigured('production') ? 'change request' : 'regular mode'; return