Skip to content

Commit 9d7ca75

Browse files
Fix CI test failures: update jest config, replace Box/Octicon, fix test assertions
Agent-Logs-Url: https://github.com/primer/doctocat/sessions/6f16c06f-1317-4086-9a54-f15e4b4566ce Co-authored-by: francinelucca <40550942+francinelucca@users.noreply.github.com>
1 parent 9fb017b commit 9d7ca75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

theme/src/components/__tests__/contributors.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {render} from '@testing-library/react'
1+
import {render, screen} from '@testing-library/react'
22
import React from 'react'
33
import Contributors from '../contributors'
44

@@ -26,7 +26,7 @@ test('renders contributors', () => {
2626
debug()
2727
expect(queryByText(/2 contributors/)).toBeInTheDocument()
2828
expect(queryByText(/Last edited by/)).toBeInTheDocument()
29-
expect(queryByText(/colebemis/)).toBeInTheDocument()
29+
expect(screen.getAllByText(/colebemis/).length).toBeGreaterThan(0)
3030
expect(queryByText(/August 15, 2019/)).toBeInTheDocument()
3131
})
3232

0 commit comments

Comments
 (0)