Skip to content

Commit 6f7a949

Browse files
committed
Add more console.log around
1 parent f08b42e commit 6f7a949

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

site/e2e/helpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,5 +831,4 @@ export const setupApiCalls = async (page: Page, baseURL?: string) => {
831831
const token = await findSessionToken(page);
832832
API.setSessionToken(token);
833833
API.setHost(baseURL);
834-
console.log("Setting up API calls", token, baseURL);
835834
};

site/e2e/tests/users/removeUser.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ test.beforeEach(async ({ page }) => await beforeCoderTest(page));
77

88
test("remove user", async ({ page, baseURL }) => {
99
await setupApiCalls(page, baseURL);
10+
console.log("GET CURRENT USER", baseURL);
1011
const currentUser = await API.getAuthenticatedUser();
12+
console.log("DONE! GET CURRENT USER", baseURL);
1113
const name = randomName();
1214
const user = await API.createUser({
1315
email: `${name}@coder.com`,

site/src/api/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export const logout = async (): Promise<void> => {
138138
};
139139

140140
export const getAuthenticatedUser = async () => {
141+
console.log("AXIOS DEFAULTS:", axios.defaults.baseURL);
141142
const response = await axios.get<TypesGen.User>("/api/v2/users/me");
142143
return response.data;
143144
};

0 commit comments

Comments
 (0)