We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e5199 commit 44a9700Copy full SHA for 44a9700
packages/render-html/src/__tests__/regression.664.profiler-warnings.test.ts
@@ -0,0 +1,15 @@
1
+import { renderHook } from '@testing-library/react-hooks';
2
+import useProfiler from '../hooks/useProfiler';
3
+
4
+jest.useFakeTimers();
5
+console.warn = jest.fn();
6
7
+describe('useProfiler', () => {
8
+ it('should log no warnings', () => {
9
+ const { result } = renderHook(useProfiler, {
10
+ initialProps: { prop: 'TEST' }
11
+ });
12
+ result.current();
13
+ expect(console.warn).not.toHaveBeenCalled();
14
15
+});
0 commit comments