Skip to content

Commit

Permalink
chore(new de view test): fix infinite recursion in console.warn stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Oct 11, 2023
1 parent 1a2efcf commit 7059ddc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/dataElements/New.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ async function changeSingleSelect(
}

describe('Data Elements / New', () => {
const consoleWarn = console.warn
jest.spyOn(console, 'warn').mockImplementation((value) => {
if (!value.match(/The query should be static/)) {
console.warn(value)
consoleWarn(value)
}
})

Expand Down

0 comments on commit 7059ddc

Please sign in to comment.