Skip to content

Commit 19b7ba8

Browse files
committed
fixup: use REVERSE_PROXY_BASE_PATH
1 parent b6928fa commit 19b7ba8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/routes.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { describe, test, expect } from "./baseFixture"
22
import { clean } from "../utils/helpers"
3+
import { REVERSE_PROXY_BASE_PATH } from "../utils/constants"
34

45
const routes = ["/", "/vscode", "/vscode/"]
56

@@ -17,7 +18,7 @@ describe("VS Code Routes", ["--disable-workspace-trust"], {}, async () => {
1718
const url = new URL(codeServerPage.page.url())
1819
if (process.env.USE_PROXY === "1") {
1920
// Behind proxy, path will be /<port/ide + route
20-
const pathWithoutProxy = url.pathname.split("/ide")[1]
21+
const pathWithoutProxy = url.pathname.split(`/${REVERSE_PROXY_BASE_PATH}`)[1]
2122
expect(pathWithoutProxy).toBe(route)
2223
} else {
2324
expect(url.pathname).toBe(route)

0 commit comments

Comments
 (0)