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 bfed395
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/layouts/BaseLayout/BaseLayout.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -596,13 +596,13 @@ 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', () => ({
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 bfed395

Please sign in to comment.