From 174c1c7edcd757702e3fa9edd00862bc55c620b7 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 22:27:36 +0000 Subject: [PATCH] ci: apply automated fixes --- .../react-query/src/__tests__/transition.test.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/react-query/src/__tests__/transition.test.tsx b/packages/react-query/src/__tests__/transition.test.tsx index aa25b52ac5..b3295d2920 100644 --- a/packages/react-query/src/__tests__/transition.test.tsx +++ b/packages/react-query/src/__tests__/transition.test.tsx @@ -1,4 +1,4 @@ -import { afterAll, beforeAll, describe, expect, it, } from 'vitest' +import { afterAll, beforeAll, describe, expect, it } from 'vitest' import * as React from 'react' import { createRenderStream, @@ -17,7 +17,6 @@ afterAll(() => { disableActReturn.cleanup() }) - describe('react transitions', () => { const queryCache = new QueryCache() const queryClient = createQueryClient({ @@ -115,8 +114,6 @@ describe('react transitions', () => { let deferredA = createDeferred() let deferredB = createDeferred() - - function ComponentA(props: { parentId: number }) { useTrackRenders() @@ -154,8 +151,6 @@ describe('react transitions', () => { staleTime: 1000, }) - - const data = React.use(query.promise) console.log('render B', data) @@ -186,7 +181,6 @@ describe('react transitions', () => { ) } - const rendered = await renderStream.render( @@ -196,7 +190,11 @@ describe('react transitions', () => { const { renderedComponents, withinDOM } = await renderStream.takeRender() withinDOM().getByText('A loading..') withinDOM().getByText('B loading..') - expect(renderedComponents).toEqual([Parent, ComponentBLoading, ComponentALoading]) + expect(renderedComponents).toEqual([ + Parent, + ComponentBLoading, + ComponentALoading, + ]) } deferredA.resolve() @@ -220,6 +218,5 @@ describe('react transitions', () => { withinDOM().getByText('B data: B-1') expect(renderedComponents).toEqual([Parent, ComponentB, ComponentA]) } - }) })