Skip to content
Snippets Groups Projects
Unverified Commit 27a2f98a authored by Guilherme Gazzo's avatar Guilherme Gazzo Committed by GitHub
Browse files

ci: Mock highlight for unit tests (#29539)

parent 12d97e16
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,12 @@ import Markup from './Markup'; ...@@ -7,6 +7,12 @@ import Markup from './Markup';
afterEach(cleanup); afterEach(cleanup);
beforeAll(() => {
jest.mock('highlight.js', () => ({
highlightElement: (): void => undefined,
}));
});
it('renders empty', () => { it('renders empty', () => {
const { container } = render(<Markup tokens={[]} />); const { container } = render(<Markup tokens={[]} />);
expect(container).toBeEmptyDOMElement(); expect(container).toBeEmptyDOMElement();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment