mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add test server and repository for system resolvers
This commit is contained in:
@@ -1,9 +1,20 @@
|
|||||||
import { describe, it } from "@jest/globals";
|
import { beforeEach, describe, it } from "@jest/globals";
|
||||||
|
import { ApolloServer } from "@apollo/server";
|
||||||
|
import { ServerContext } from "../../src/ServerContext";
|
||||||
|
import { UnoptimizedInMemoryRepository } from "../../src/repositories/UnoptimizedInMemoryRepository";
|
||||||
|
import { setUpTestServer } from "../testHelpers/apolloSetupHelpers";
|
||||||
|
|
||||||
describe("SystemResolvers", () => {
|
describe("SystemResolvers", () => {
|
||||||
|
let testServer: ApolloServer<ServerContext>;
|
||||||
|
let repository: UnoptimizedInMemoryRepository;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
testServer = setUpTestServer();
|
||||||
|
repository = new UnoptimizedInMemoryRepository();
|
||||||
|
});
|
||||||
|
|
||||||
describe("routes", () => {
|
describe("routes", () => {
|
||||||
it("gets routes associated with system id", async () => {
|
it("gets routes associated with system id", async () => {
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user