mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 14:22:33 +01:00
* chore: 🔧 remove client * chore: 🔧 change cookie name * chore: 🔧 remove auth param * chore: 🔧 remove auth components * chore: 🔧 add getaccount query * fix: 🐛 tests * chore: 🔧 get account * chore: 🔧 status check * chore: 🔧 remove log * chore: 🔧 update apollo client * refactor: ♻️ server side props * chore: 🔧 ssr queries * chore: 🔧 more ssr queries * chore: 🔧 type check * chore: 🔧 increase nodeinfo limit Co-authored-by: apotdevin <apotdevincab@gmail.com>
13 lines
404 B
TypeScript
13 lines
404 B
TypeScript
import {
|
|
createTestClient,
|
|
ApolloServerTestClient,
|
|
} from 'apollo-server-testing';
|
|
import { ApolloServer } from 'apollo-server';
|
|
import { schema } from 'server/schema';
|
|
import { ContextMock } from 'server/tests/testMocks';
|
|
|
|
export default function testServer(context?: any): ApolloServerTestClient {
|
|
return createTestClient(
|
|
new ApolloServer({ schema, context: context || ContextMock })
|
|
);
|
|
}
|