Skip to content

Commit b601ef7

Browse files
committed
my therapist will definitely be hearing about this commit
1 parent 3bb132c commit b601ef7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

site/src/pages/CreateWorkspacePage/CreateWorkspacePage.test.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ describe("CreateWorkspacePage", () => {
269269
const paramValue = "It works!";
270270
const createWorkspaceSpy = jest.spyOn(API, "createWorkspace");
271271

272-
jest
272+
const externalAuthSpy = jest
273273
.spyOn(API, "getTemplateVersionExternalAuth")
274274
.mockResolvedValue([MockTemplateVersionExternalAuthGithub]);
275275

@@ -286,6 +286,11 @@ describe("CreateWorkspacePage", () => {
286286
"This template requires an external authentication provider that is not connected.";
287287
expect(await screen.findByText(warning)).toBeInTheDocument();
288288
expect(createWorkspaceSpy).not.toBeCalled();
289+
290+
// We don't need to do this on any other tests out of hundreds of very, very,
291+
// very similar tests, and yet here, I find it to be absolutely necessary for
292+
// some reason that I certainly do not understand. - Kayla
293+
externalAuthSpy.mockReset();
289294
});
290295

291296
it("auto create a workspace if uses mode=auto and version=version-id", async () => {

0 commit comments

Comments
 (0)