Skip to content

Commit

Permalink
chore(ci): revert excessive test configs
Browse files Browse the repository at this point in the history
  • Loading branch information
vicary committed Feb 3, 2025
1 parent b274006 commit 5052b59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
13 changes: 1 addition & 12 deletions packages/react/test/useMutation.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { renderHook, waitFor } from '@testing-library/react';
import { Cache } from 'gqty';
import { act } from 'react';
import { createReactTestClient } from './utils';

Expand Down Expand Up @@ -66,17 +65,7 @@ describe('useMutation', () => {
});

it('should update contents of useQuery via normalized cache', async () => {
const { useQuery, useMutation } = await createReactTestClient(
undefined,
undefined,
undefined,
{
cache: new Cache(undefined, {
maxAge: Infinity,
normalization: true,
}),
}
);
const { useQuery, useMutation } = await createReactTestClient();
const { result: q } = renderHook(() => {
const human = useQuery().human({ name: 'Uno' });

Expand Down
6 changes: 3 additions & 3 deletions packages/solid/src/query.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('createQuery', () => {
const { createQuery } = await createMockSolidClient({
client: {
cache: new Cache(undefined, {
maxAge: 100,
maxAge: 0,
staleWhileRevalidate: 5 * 30 * 1000,
}),
onFetch: ({ query }) => {
Expand Down Expand Up @@ -366,7 +366,7 @@ describe('createQuery', () => {
const { createQuery } = await createMockSolidClient({
client: {
cache: new Cache(undefined, {
maxAge: 100,
maxAge: 0,
staleWhileRevalidate: 5 * 30 * 1000,
}),
},
Expand Down Expand Up @@ -430,7 +430,7 @@ describe('createQuery', () => {
const { createQuery } = await createMockSolidClient({
client: {
cache: new Cache(undefined, {
maxAge: 100,
maxAge: 0,
staleWhileRevalidate: 5 * 30 * 1000,
}),
},
Expand Down

0 comments on commit 5052b59

Please sign in to comment.