From 083e147c512e85fa5608e5c3a6c74a61e4fb8432 Mon Sep 17 00:00:00 2001 From: Michel Diz Date: Sat, 7 Oct 2023 23:07:36 -0300 Subject: [PATCH] Add sleep and remove fail --- docker-compose.test.yml | 2 +- src/__tests__/query.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index eef1f48..17b5928 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -11,7 +11,7 @@ services: - dgraph-alpha test-api: build: . - command: yarn test + command: /bin/sh -c "sleep 10 && yarn test" depends_on: - app environment: diff --git a/src/__tests__/query.test.ts b/src/__tests__/query.test.ts index 1a9d7ac..b0f9dc9 100644 --- a/src/__tests__/query.test.ts +++ b/src/__tests__/query.test.ts @@ -32,7 +32,7 @@ describe('Mutations', () => { expect(data.add).toHaveProperty('addUser'); expect(data.add.addUser).toEqual(expect.any(Object)); expect(data.add.addUser).toHaveProperty('id'); - expect(data.add.addUser).toHaveProperty('titleMAKEITFAIL'); + expect(data.add.addUser).toHaveProperty('title'); }, 3000); });