mirror of
https://github.com/oven-sh/bun
synced 2026-02-24 18:47:18 +01:00
tidy
This commit is contained in:
@@ -706,8 +706,6 @@ pub const RunCommand = struct {
|
||||
return try allocator.dupeZ(u8, target_path_buffer[0 .. converted.len + file_name.len :0]);
|
||||
}
|
||||
|
||||
var self_exe_bin_path_buf: [bun.MAX_PATH_BYTES + 1]u8 = undefined;
|
||||
|
||||
pub fn createFakeTemporaryNodeExecutable(PATH: *std.ArrayList(u8), optional_bun_path: *string) !void {
|
||||
// If we are already running as "node", the path should exist
|
||||
if (CLI.pretend_to_be_node) return;
|
||||
|
||||
@@ -23,11 +23,8 @@ expect.extend({
|
||||
toHaveWorkspaceLink: async function (package_dir: string, [link, real]: [string, string]) {
|
||||
const isWindows = process.platform === "win32";
|
||||
if (!isWindows) {
|
||||
// expect(await readlink(join(package_dir, "node_modules", "Bar"))).toBeWorkspaceLink(join("..", "bar"));
|
||||
// expect(await readlink(join(package_dir, "node_modules", link))).toBeWorkspaceLink(join("..", real));
|
||||
return expect(await readlink(join(package_dir, "node_modules", link))).toBeWorkspaceLink(join("..", real));
|
||||
} else {
|
||||
// expect(await readlink(join(package_dir, "node_modules", link))).toBeWorkspaceLink(join(package_dir, real));
|
||||
return expect(await readlink(join(package_dir, "node_modules", link))).toBeWorkspaceLink(join(package_dir, real));
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user