Skip to content

Commit cafc7ef

Browse files
committed
maybe?
1 parent c23cfbf commit cafc7ef

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

site/e2e/constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
export const coderMain = new URL("../../enterprise/cmd/coder", import.meta.url)
2-
.pathname;
1+
import * as path from "node:path";
2+
3+
export const coderMain = path.join(__dirname, "../../enterprise/cmd/coder");
34

45
// Default port from the server
56
export const coderPort = process.env.CODER_E2E_PORT

site/e2e/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { type ChildProcess, exec, spawn } from "node:child_process";
22
import { randomUUID } from "node:crypto";
3+
import * as fs from "node:fs";
34
import net from "node:net";
45
import path from "node:path";
56
import { Duplex } from "node:stream";
@@ -368,7 +369,7 @@ export const downloadCoderVersion = async (
368369
// Run our official install script to install the binary
369370
await new Promise<void>((resolve, reject) => {
370371
const cp = spawn(
371-
new URL("../../install.sh", import.meta.url).pathname,
372+
path.join(__dirname, "../../install.sh"),
372373
[
373374
"--version",
374375
version,

site/e2e/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "type": "commonjs" }

site/e2e/playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { execSync } from "node:child_process";
2+
import * as path from "node:path";
23
import { defineConfig } from "@playwright/test";
34
import {
45
coderMain,
@@ -13,7 +14,7 @@ import {
1314
export const wsEndpoint = process.env.CODER_E2E_WS_ENDPOINT;
1415

1516
// This is where auth cookies are stored!
16-
export const storageState = new URL(".auth.json", import.meta.url).pathname;
17+
export const storageState = path.join(__dirname, ".auth.json");
1718

1819
// If running terraform tests, verify the requirements exist in the
1920
// environment.

site/vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export default defineConfig({
3232
"process.env": {
3333
NODE_ENV: process.env.NODE_ENV,
3434
STORYBOOK: process.env.STORYBOOK,
35-
INSPECT_XSTATE: process.env.INSPECT_XSTATE,
3635
},
3736
},
3837
server: {

0 commit comments

Comments
 (0)