From 22294b8a6e33c82046fcc4601a2525d24029ff00 Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 10 Aug 2022 14:45:58 -0400 Subject: [PATCH] Fix test --- .../features/ui/components/__tests__/trends-panel.test.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/soapbox/features/ui/components/__tests__/trends-panel.test.tsx b/app/soapbox/features/ui/components/__tests__/trends-panel.test.tsx index 20eb3c5afa..0d203ab9be 100644 --- a/app/soapbox/features/ui/components/__tests__/trends-panel.test.tsx +++ b/app/soapbox/features/ui/components/__tests__/trends-panel.test.tsx @@ -2,10 +2,14 @@ import React from 'react'; import { __stub } from 'soapbox/api'; -import { render, screen, waitFor } from '../../../../jest/test-helpers'; +import { queryClient, render, screen, waitFor } from '../../../../jest/test-helpers'; import TrendsPanel from '../trends-panel'; describe('', () => { + beforeEach(() => { + queryClient.clear(); + }); + describe('with hashtags', () => { beforeEach(() => { __stub((mock) => {