From 173c797ec9d578dce1fec431048a78d7a37bc836 Mon Sep 17 00:00:00 2001 From: Evyatar Date: Sat, 13 Jul 2024 17:23:13 +0300 Subject: [PATCH] Fix tests --- .../focused/__tests__/__snapshots__/focused.test.ts.snap | 6 ++---- packages/vest/src/suite/createSuite.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/vest/src/hooks/focused/__tests__/__snapshots__/focused.test.ts.snap b/packages/vest/src/hooks/focused/__tests__/__snapshots__/focused.test.ts.snap index 95fa6ab4b..8fc8ee4fa 100644 --- a/packages/vest/src/hooks/focused/__tests__/__snapshots__/focused.test.ts.snap +++ b/packages/vest/src/hooks/focused/__tests__/__snapshots__/focused.test.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Top Level Focus Top Level Skip When passing false Should run all fields 1`] = ` -{ +Promise { "done": [Function], "dump": [Function], "errorCount": 3, @@ -39,7 +39,6 @@ exports[`Top Level Focus Top Level Skip When passing false Should run all fields "isValid": [Function], "isValidByGroup": [Function], "pendingCount": 0, - "resolve": [Function], "suiteName": undefined, "testCount": 3, "tests": { @@ -84,7 +83,7 @@ exports[`Top Level Focus Top Level Skip When passing false Should run all fields `; exports[`Top Level Focus Top Level Skip When passing undefined Should run all fields 1`] = ` -{ +Promise { "done": [Function], "dump": [Function], "errorCount": 3, @@ -122,7 +121,6 @@ exports[`Top Level Focus Top Level Skip When passing undefined Should run all fi "isValid": [Function], "isValidByGroup": [Function], "pendingCount": 0, - "resolve": [Function], "suiteName": undefined, "testCount": 3, "tests": { diff --git a/packages/vest/src/suite/createSuite.ts b/packages/vest/src/suite/createSuite.ts index e81a15868..06412167e 100644 --- a/packages/vest/src/suite/createSuite.ts +++ b/packages/vest/src/suite/createSuite.ts @@ -1,4 +1,4 @@ -import { assign, CB, freezeAssign } from 'vest-utils'; +import { assign, CB } from 'vest-utils'; import { Bus, VestRuntime } from 'vestjs-runtime'; import { TTypedMethods, getTypedMethods } from './getTypedMethods';