fix: 🐛 fix the dependency on apiClientTestAfter with a noop (#2964)

This commit is contained in:
hashicc authored and GitHub committed 2025-08-14 10:40:52 -04:00
1 parent b42ecbff36
commit bb7352ca54
1 file changed
+3
+3
View File
@@ -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