summaryrefslogtreecommitdiffstats
path: root/backend/__tests__/user.test.js
blob: bedca3fa3124a88f660a86aec3d53e3f9fd462de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const { request } = require('graphql-request');
const createServer = require('../src/createServer');

import { SIGNUP_MUTATION } from '../../frontend/queries/index';

console.log(SIGNUP_MUTATION);

let server;
const port = 2342;
const endpoint = `http://localhost:${port}`;

beforeAll(async () => {
  server = await createServer().start({ port });
});

afterAll(async () => {
  server.close();
});

describe('User C.R.U.D. Operations', () => {
  it('Creates a user', () => {
    const query = `

    `;
  });
});