From bb7352ca5491615ed92c6cb564357ae706975689 Mon Sep 17 00:00:00 2001 From: hashicc <191911133+hashicc@users.noreply.github.com> Date: Thu, 14 Aug 2025 07:40:52 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fix=20the=20dependency=20?= =?UTF-8?q?on=20apiClientTestAfter=20with=20a=20noop=20(#2964)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- e2e-tests/helpers/boundary-api-client.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e-tests/helpers/boundary-api-client.ts b/e2e-tests/helpers/boundary-api-client.ts index ce82c7451..a5b7073b4 100644 --- a/e2e-tests/helpers/boundary-api-client.ts +++ b/e2e-tests/helpers/boundary-api-client.ts @@ -246,6 +246,9 @@ export const boundaryApiClientTest = base.extend<{ controllerAddr?: string; apiClientTestAfter?: () => {}; }>({ + // this is a noop so that the `apiClient` fixture doesn't fail for other tests, + // the `apiClientTestAfter` fixture is used in api-client tests to provide a hook for assertions + apiClientTestAfter: () => {}, apiClient: async ({ controllerAddr, apiClientTestAfter }, use) => { // by destructuring the `apiClientTestAfter` fixture it creates a dependency on that fixture which // controls the setup/teardown order and allows `api-client.spec.js` to test the teardown cleanup