From a575a792b38b1b41420fe1d6bf8b3352512526ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Thu, 21 Aug 2025 20:51:53 +0200 Subject: [PATCH] Split setup and validation --- src/test/e2e/api/client/feature.optimal304.e2e.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/e2e/api/client/feature.optimal304.e2e.test.ts b/src/test/e2e/api/client/feature.optimal304.e2e.test.ts index fa7104e719..567eb677de 100644 --- a/src/test/e2e/api/client/feature.optimal304.e2e.test.ts +++ b/src/test/e2e/api/client/feature.optimal304.e2e.test.ts @@ -90,7 +90,12 @@ async function initialize({ app, db }: { app: IUnleashTest; db: ITestDb }) { ip: '127.0.0.1', featureName: `X`, }); +} +async function validateInitialState({ + app, + db, +}: { app: IUnleashTest; db: ITestDb }) { /** * This helps reason about the etag, which is formed by : * To see the output you need to run this test with --silent=false @@ -187,6 +192,7 @@ describe.each([ enabled, })); await initialize({ app, db }); + await validateInitialState({ app, db }); }); afterAll(async () => {