debug server

This commit is contained in:
Moriz Wahl 2022-04-26 12:45:23 +02:00
parent ae679bcb4c
commit d212ccb4b7
2 changed files with 2 additions and 4 deletions

View File

@ -14,7 +14,7 @@
"dev": "cross-env TZ=UTC nodemon -w src --ext ts --exec ts-node -r tsconfig-paths/register src/index.ts",
"lint": "eslint --max-warnings=0 --ext .js,.ts .",
"test": "cross-env TZ=UTC NODE_ENV=development jest --runInBand --coverage --forceExit --detectOpenHandles",
"seed": "cross-env TZ=UTC NODE_ENV=development ts-node -r tsconfig-paths/register src/seeds/index.ts"
"seed": "TZ=UTC NODE_ENV=development ts-node -r tsconfig-paths/register src/seeds/index.ts"
},
"dependencies": {
"@types/jest": "^27.0.2",

View File

@ -2,7 +2,7 @@ import { createUser, setPassword } from '@/seeds/graphql/mutations'
import { User } from '@entity/User'
import { LoginEmailOptIn } from '@entity/LoginEmailOptIn'
import { UserInterface } from '@/seeds/users/UserInterface'
import { ApolloServerTestClient } from 'apollo-server-testing/dist/createTestClient'
import { ApolloServerTestClient } from 'apollo-server-testing'
export const userFactory = async (
client: ApolloServerTestClient,
@ -10,8 +10,6 @@ export const userFactory = async (
): Promise<void> => {
const { mutate } = client
console.log(client)
const {
data: {
createUser: { id },