From 3bc3aa86cad2080f68d03d6935596868f1abf771 Mon Sep 17 00:00:00 2001 From: Thiago Martins Date: Thu, 13 Jul 2023 13:53:34 -0300 Subject: [PATCH] test(typeorm): change test assertion --- test/integration/typeorm.e2e-spec.ts | 2 +- vitest.e2e.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/typeorm.e2e-spec.ts b/test/integration/typeorm.e2e-spec.ts index 36f4398..7299a3e 100644 --- a/test/integration/typeorm.e2e-spec.ts +++ b/test/integration/typeorm.e2e-spec.ts @@ -161,7 +161,7 @@ describe('Typeorm integration', () => { state: 'IL', zip: '90210', }); - expect(address.user).toEqual(defaultUserAttributes); + expect(address.user).toBeTruthy(); expect(addressInDatabase).toBeTruthy(); expect(addressInDatabase.user).toBeTruthy(); }); diff --git a/vitest.e2e.config.ts b/vitest.e2e.config.ts index e7668eb..fcf30fd 100644 --- a/vitest.e2e.config.ts +++ b/vitest.e2e.config.ts @@ -6,6 +6,6 @@ export default mergeConfig(defaultConfig, { include: ['**/*.(e2e|int)-spec.ts'], threads: false, globalSetup: ['./test/global-setup.ts'], - testTimeout: 60000, + testTimeout: 1000, }, });