1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00

Split setup and validation

This commit is contained in:
Gastón Fournier 2025-08-21 20:51:53 +02:00
parent 151dd42bf3
commit a575a792b3
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E

View File

@ -90,7 +90,12 @@ async function initialize({ app, db }: { app: IUnleashTest; db: ITestDb }) {
ip: '127.0.0.1', ip: '127.0.0.1',
featureName: `X`, featureName: `X`,
}); });
}
async function validateInitialState({
app,
db,
}: { app: IUnleashTest; db: ITestDb }) {
/** /**
* This helps reason about the etag, which is formed by <query-hash>:<event-id> * This helps reason about the etag, which is formed by <query-hash>:<event-id>
* To see the output you need to run this test with --silent=false * To see the output you need to run this test with --silent=false
@ -187,6 +192,7 @@ describe.each([
enabled, enabled,
})); }));
await initialize({ app, db }); await initialize({ app, db });
await validateInitialState({ app, db });
}); });
afterAll(async () => { afterAll(async () => {