From db41196f85548c9954afe1fd6dadbe4060fdebcf Mon Sep 17 00:00:00 2001 From: barak igal Date: Sun, 10 Dec 2023 20:42:50 +0200 Subject: [PATCH] Update packages/test-kit/src/with-feature.ts Co-authored-by: Omry Nachman <110462176+daomry@users.noreply.github.com> --- packages/test-kit/src/with-feature.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/test-kit/src/with-feature.ts b/packages/test-kit/src/with-feature.ts index f280afa08..f07f5df7c 100644 --- a/packages/test-kit/src/with-feature.ts +++ b/packages/test-kit/src/with-feature.ts @@ -402,7 +402,7 @@ export function withFeature(withFeatureOptions: IWithFeatureOptions = {}): WithF group: WITH_FEATURE_DISPOSABLES, name: `close feature "${featureName}"`, timeout: withFeatureOptions.featureDisposeTimeout ?? 10_000, - dispose: () => runningFeature.dispose(), + dispose: runningFeature, }); const search = toSearchQuery({