Skip to content

Commit 63becef

Browse files
committed
test: fix error suppression disabled tests for other renderers
1 parent 680021e commit 63becef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/native/__tests__/errorSuppression.disabled.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ describe('error output suppression (disabled) tests', () => {
55

66
beforeAll(() => {
77
process.env.RHTL_DISABLE_ERROR_FILTERING = 'true'
8+
require('..')
89
})
910

1011
test('should not patch console.error', () => {
11-
require('..')
1212
expect(console.error).toBe(originalConsoleError)
1313
})
1414
})

src/server/__tests__/errorSuppression.disabled.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ describe('error output suppression (disabled) tests', () => {
55

66
beforeAll(() => {
77
process.env.RHTL_DISABLE_ERROR_FILTERING = 'true'
8+
require('..')
89
})
910

1011
test('should not patch console.error', () => {
11-
require('..')
1212
expect(console.error).toBe(originalConsoleError)
1313
})
1414
})

0 commit comments

Comments
 (0)