Skip to content

Commit 5052b59

Browse files
committed
chore(ci): revert excessive test configs
1 parent b274006 commit 5052b59

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

packages/react/test/useMutation.test.tsx

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { renderHook, waitFor } from '@testing-library/react';
2-
import { Cache } from 'gqty';
32
import { act } from 'react';
43
import { createReactTestClient } from './utils';
54

@@ -66,17 +65,7 @@ describe('useMutation', () => {
6665
});
6766

6867
it('should update contents of useQuery via normalized cache', async () => {
69-
const { useQuery, useMutation } = await createReactTestClient(
70-
undefined,
71-
undefined,
72-
undefined,
73-
{
74-
cache: new Cache(undefined, {
75-
maxAge: Infinity,
76-
normalization: true,
77-
}),
78-
}
79-
);
68+
const { useQuery, useMutation } = await createReactTestClient();
8069
const { result: q } = renderHook(() => {
8170
const human = useQuery().human({ name: 'Uno' });
8271

packages/solid/src/query.test.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('createQuery', () => {
2121
const { createQuery } = await createMockSolidClient({
2222
client: {
2323
cache: new Cache(undefined, {
24-
maxAge: 100,
24+
maxAge: 0,
2525
staleWhileRevalidate: 5 * 30 * 1000,
2626
}),
2727
onFetch: ({ query }) => {
@@ -366,7 +366,7 @@ describe('createQuery', () => {
366366
const { createQuery } = await createMockSolidClient({
367367
client: {
368368
cache: new Cache(undefined, {
369-
maxAge: 100,
369+
maxAge: 0,
370370
staleWhileRevalidate: 5 * 30 * 1000,
371371
}),
372372
},
@@ -430,7 +430,7 @@ describe('createQuery', () => {
430430
const { createQuery } = await createMockSolidClient({
431431
client: {
432432
cache: new Cache(undefined, {
433-
maxAge: 100,
433+
maxAge: 0,
434434
staleWhileRevalidate: 5 * 30 * 1000,
435435
}),
436436
},

0 commit comments

Comments
 (0)