fix: 🐛 fix the dependency on apiClientTestAfter with a noop (#2964)
This commit is contained in:
1 parent
b42ecbff36
commit
bb7352ca54
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user