Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry committed Dec 20, 2024
1 parent dba8d2c commit addf7d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/layouts/BaseLayout/BaseLayout.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -595,14 +595,14 @@ describe('BaseLayout', () => {
})

describe('When Header has a network call error', async () => {
it.only('renders the EmptyErrorComponent when header throws an error', async () => {
vi.doMock('./Header', () => ({
it('renders the EmptyErrorComponent when header throws an error', async () => {
vi.mock('layouts/Header', () => ({
default: () => {
throw new Error('Header Error')
throw new Error('Simulated Header Error')
},
}))
const { default: BaseLayout } = await import('./BaseLayout')
setup({ currentUser: loggedInUser })

setup({ currentUser: userHasDefaultOrg })
render(<BaseLayout>hello</BaseLayout>, { wrapper: wrapper() })

const header = screen.queryByText(/Header/)
Expand Down

0 comments on commit addf7d7

Please sign in to comment.