src/__tests__/components/Experience/JobTechnologies.spec.tsx
import * as React from 'react'
import { render } from '@testing-library/react'
import '@testing-library/jest-dom'
import JobTechnologies from '../../../components/Experience/JobTechnologies'
import { testJobTechnologies } from './TestUtils'
test('should render JobTechnologies correctly', () => {
const technologies = ['maven', 'java']
const { container } = render(<JobTechnologies keyPrefix="test" names={technologies} />)
testJobTechnologies(
container.querySelector('div.technologies'),
technologies
)
})