mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
windows: make websocket-client.test.ts pass (#8935)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// @known-failing-on-windows: 1 failing
|
||||
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
||||
import type { Subprocess } from "bun";
|
||||
import { spawn } from "bun";
|
||||
import { bunEnv, bunExe, nodeExe } from "harness";
|
||||
import * as path from "node:path";
|
||||
|
||||
const strings = [
|
||||
{
|
||||
@@ -260,7 +260,7 @@ function test(label: string, fn: (ws: WebSocket, done: (err?: unknown) => void)
|
||||
}
|
||||
|
||||
async function listen(): Promise<URL> {
|
||||
const { pathname } = new URL("./websocket-server-echo.mjs", import.meta.url);
|
||||
const pathname = path.join(import.meta.dir, "./websocket-server-echo.mjs");
|
||||
const server = spawn({
|
||||
cmd: [nodeExe() ?? bunExe(), pathname],
|
||||
cwd: import.meta.dir,
|
||||
|
||||
Reference in New Issue
Block a user