mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
why were we doing this in tests
This commit is contained in:
@@ -62,7 +62,7 @@ it("should add existing package", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", dep],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -109,7 +109,7 @@ it("should reject missing package", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", dep],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -152,7 +152,7 @@ it("should reject invalid path without segfault", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", dep],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -197,7 +197,7 @@ it("should handle semver-like names", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "1.2.3"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -240,7 +240,7 @@ it("should handle @scoped names", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "@bar/baz"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -274,7 +274,7 @@ it("should add dependency with capital letters", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "BaR"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -329,7 +329,7 @@ it("should add exact version with --exact", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "--exact", "BaR"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -385,7 +385,7 @@ it("should add exact version with install.exact", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "BaR"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -440,7 +440,7 @@ it("should add exact version with -E", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "-E", "BaR"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -502,7 +502,7 @@ it("should add dependency with specified semver", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "baz@~0.0.2"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -563,7 +563,7 @@ it("should add dependency (GitHub)", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "mishoo/UglifyJS#v3.14.1"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -650,7 +650,7 @@ it("should add dependency alongside workspaces", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "baz"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -724,7 +724,7 @@ it("should add aliased dependency (npm)", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "bar@npm:baz@~0.0.2"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -785,7 +785,7 @@ it("should add aliased dependency (GitHub)", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "uglify@mishoo/UglifyJS#v3.14.1"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -870,7 +870,7 @@ it("should let you add the same package twice", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "add", "baz@0.0.3"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -922,7 +922,7 @@ it("should let you add the same package twice", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "add", "baz", "-d"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -986,7 +986,7 @@ it("should install version tagged with `latest` by default", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "add", "baz"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1039,7 +1039,7 @@ it("should install version tagged with `latest` by default", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1100,7 +1100,7 @@ it("should handle Git URL in dependencies (SCP-style)", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "add", "bun@github.com:mishoo/UglifyJS.git"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1166,7 +1166,7 @@ it("should handle Git URL in dependencies (SCP-style)", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1199,7 +1199,7 @@ it("should not save git urls twice", async () => {
|
||||
const { exited: exited1 } = spawn({
|
||||
cmd: [bunExe(), "add", "https://github.com/liz3/empty-bun-repo"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1215,7 +1215,7 @@ it("should not save git urls twice", async () => {
|
||||
const { exited: exited2 } = spawn({
|
||||
cmd: [bunExe(), "add", "https://github.com/liz3/empty-bun-repo"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1248,7 +1248,7 @@ it("should prefer optionalDependencies over dependencies of the same name", asyn
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "bar@0.0.2"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1308,7 +1308,7 @@ it("should prefer dependencies over peerDependencies of the same name", async ()
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "bar@0.0.2"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1366,7 +1366,7 @@ it("should add dependency without duplication", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "add", "bar"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1415,7 +1415,7 @@ it("should add dependency without duplication", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "add", "bar"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1472,7 +1472,7 @@ it("should add dependency without duplication (GitHub)", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "add", "mishoo/UglifyJS#v3.14.1"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1533,7 +1533,7 @@ it("should add dependency without duplication (GitHub)", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "add", "mishoo/UglifyJS#v3.14.1"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1616,7 +1616,7 @@ it("should add dependencies to workspaces directly", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", dep],
|
||||
cwd: join(package_dir, "moo"),
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1679,7 +1679,7 @@ async function installRedirectsToAdd(saveFlagFirst: boolean) {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install", ...args],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1716,7 +1716,7 @@ it("should add dependency alongside peerDependencies", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", "bar"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1770,7 +1770,7 @@ it("should add local tarball dependency", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "add", tarball],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
|
||||
@@ -40,7 +40,7 @@ it("should create selected template with @ prefix", async () => {
|
||||
const { stderr } = spawn({
|
||||
cmd: [bunExe(), "create", "@quick-start/some-template"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -56,7 +56,7 @@ it("should create selected template with @ prefix implicit `/create`", async ()
|
||||
const { stderr } = spawn({
|
||||
cmd: [bunExe(), "create", "@second-quick-start"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -72,7 +72,7 @@ it("should create selected template with @ prefix implicit `/create` with versio
|
||||
const { stderr } = spawn({
|
||||
cmd: [bunExe(), "create", "@second-quick-start"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -92,7 +92,7 @@ it("should create template from local folder", async () => {
|
||||
const { exited } = spawn({
|
||||
cmd: [bunExe(), "create", testTemplate],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: { ...env, BUN_CREATE_DIR: bunCreateDir },
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -61,7 +61,7 @@ it("should link and unlink workspace package", async () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: link_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -83,7 +83,7 @@ it("should link and unlink workspace package", async () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "link"],
|
||||
cwd: join(link_dir, "packages", "moo"),
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -99,7 +99,7 @@ it("should link and unlink workspace package", async () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "link", "moo"],
|
||||
cwd: join(link_dir, "packages", "boba"),
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -124,7 +124,7 @@ it("should link and unlink workspace package", async () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "unlink"],
|
||||
cwd: join(link_dir, "packages", "moo"),
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -141,7 +141,7 @@ it("should link and unlink workspace package", async () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "link"],
|
||||
cwd: link_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -157,7 +157,7 @@ it("should link and unlink workspace package", async () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "link", "foo"],
|
||||
cwd: join(link_dir, "packages", "boba"),
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -183,7 +183,7 @@ it("should link and unlink workspace package", async () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "unlink"],
|
||||
cwd: link_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -221,7 +221,7 @@ it("should link package", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "link"],
|
||||
cwd: link_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -240,7 +240,7 @@ it("should link package", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "link", link_name],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -265,7 +265,7 @@ it("should link package", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "unlink"],
|
||||
cwd: link_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -284,7 +284,7 @@ it("should link package", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "link", link_name],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -321,7 +321,7 @@ it("should link scoped package", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "link"],
|
||||
cwd: link_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -340,7 +340,7 @@ it("should link scoped package", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "link", link_name],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -365,7 +365,7 @@ it("should link scoped package", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "unlink"],
|
||||
cwd: link_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -384,7 +384,7 @@ it("should link scoped package", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "link", link_name],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -428,7 +428,7 @@ it("should link dependency without crashing", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "link"],
|
||||
cwd: link_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -447,7 +447,7 @@ it("should link dependency without crashing", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -479,7 +479,7 @@ it("should link dependency without crashing", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "unlink"],
|
||||
cwd: link_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -498,7 +498,7 @@ it("should link dependency without crashing", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
|
||||
@@ -51,7 +51,7 @@ it("should list top-level dependency", async () => {
|
||||
await spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -63,7 +63,7 @@ it("should list top-level dependency", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "pm", "ls"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -107,7 +107,7 @@ it("should list all dependencies", async () => {
|
||||
await spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -119,7 +119,7 @@ it("should list all dependencies", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "pm", "ls", "--all"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -164,7 +164,7 @@ it("should list top-level aliased dependency", async () => {
|
||||
await spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -176,7 +176,7 @@ it("should list top-level aliased dependency", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "pm", "ls"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -220,7 +220,7 @@ it("should list aliased dependencies", async () => {
|
||||
await spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -232,7 +232,7 @@ it("should list aliased dependencies", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "pm", "ls", "--all"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -278,7 +278,7 @@ it("should remove all cache", async () => {
|
||||
await spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: {
|
||||
|
||||
@@ -54,7 +54,7 @@ it("should remove existing package", async () => {
|
||||
const { exited: exited1 } = spawn({
|
||||
cmd: [bunExe(), "add", `file:${pkg1_path}`.replace(/\\/g, "\\\\")],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -63,7 +63,7 @@ it("should remove existing package", async () => {
|
||||
const { exited: exited2 } = spawn({
|
||||
cmd: [bunExe(), "add", `file:${pkg2_path}`.replace(/\\/g, "\\\\")],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -91,7 +91,7 @@ it("should remove existing package", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "remove", "pkg1"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -132,7 +132,7 @@ it("should remove existing package", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "remove", "pkg2"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -181,7 +181,7 @@ it("should not reject missing package", async () => {
|
||||
const { exited: addExited } = spawn({
|
||||
cmd: [bunExe(), "add", `file:${pkg_path}`.replace(/\\/g, "\\\\")],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -191,7 +191,7 @@ it("should not reject missing package", async () => {
|
||||
const { exited: rmExited } = spawn({
|
||||
cmd: [bunExe(), "remove", "pkg2"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -211,7 +211,7 @@ it("should not affect if package is not installed", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "remove", "pkg"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -248,7 +248,7 @@ it("should retain a new line in the end of package.json", async () => {
|
||||
const { exited: addExited } = spawn({
|
||||
cmd: [bunExe(), "add", `file:${pkg_path}`.replace(/\\/g, "\\\\")],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -261,7 +261,7 @@ it("should retain a new line in the end of package.json", async () => {
|
||||
const { exited } = spawn({
|
||||
cmd: [bunExe(), "remove", "pkg"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -294,7 +294,7 @@ it("should remove peerDependencies", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "remove", "bar"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
|
||||
@@ -257,7 +257,7 @@ console.log(minify("print(6 * 7)").code);
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "run", "test.js"],
|
||||
cwd: run_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: {
|
||||
@@ -283,7 +283,7 @@ console.log(minify("print(6 * 7)").code);
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "test.js"],
|
||||
cwd: run_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: {
|
||||
@@ -323,7 +323,7 @@ for (const entry of await decompress(Buffer.from(buffer))) {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "test.js"],
|
||||
cwd: run_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: {
|
||||
@@ -363,7 +363,7 @@ for (const entry of await decompress(Buffer.from(buffer))) {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "run", "test.js"],
|
||||
cwd: run_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: {
|
||||
|
||||
@@ -58,7 +58,7 @@ it("should update to latest version of dependency", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -102,7 +102,7 @@ it("should update to latest version of dependency", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "update", "baz"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -171,7 +171,7 @@ it("should update to latest versions of dependencies", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -223,7 +223,7 @@ it("should update to latest versions of dependencies", async () => {
|
||||
} = spawn({
|
||||
cmd: [bunExe(), "update"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -289,7 +289,7 @@ it("lockfile should not be modified when there are no version changes, issue#588
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -312,7 +312,7 @@ it("lockfile should not be modified when there are no version changes, issue#588
|
||||
const { exited } = spawn({
|
||||
cmd: [bunExe(), "update"],
|
||||
cwd: package_dir, // package.json is not changed
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
|
||||
@@ -40,7 +40,7 @@ it("should install and run default (latest) version", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "x", "uglify-js", "--compress"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: new TextEncoder().encode("console.log(6 * 7);"),
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -58,7 +58,7 @@ it("should install and run specified version", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "x", "uglify-js@3.14.1", "-v"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -76,7 +76,7 @@ it("should output usage if no arguments are passed", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "x"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -97,7 +97,7 @@ it("should work for @scoped packages", async () => {
|
||||
const withoutCache = spawn({
|
||||
cmd: [bunExe(), "x", "@withfig/autocomplete-tools", "--help"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -115,7 +115,7 @@ it("should work for @scoped packages", async () => {
|
||||
const cached = spawn({
|
||||
cmd: [bunExe(), "x", "@withfig/autocomplete-tools", "--help"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -143,7 +143,7 @@ console.log(
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "--bun", "x", "uglify-js", "test.js", "--compress"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -164,7 +164,7 @@ it("should work for github repository", async () => {
|
||||
const withoutCache = spawn({
|
||||
cmd: [bunExe(), "x", "github:piuccio/cowsay", "--help"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -182,7 +182,7 @@ it("should work for github repository", async () => {
|
||||
const cached = spawn({
|
||||
cmd: [bunExe(), "x", "github:piuccio/cowsay", "--help"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -202,7 +202,7 @@ it("should work for github repository with committish", async () => {
|
||||
const withoutCache = spawn({
|
||||
cmd: [bunExe(), "x", "github:piuccio/cowsay#HEAD", "hello bun!"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -220,7 +220,7 @@ it("should work for github repository with committish", async () => {
|
||||
const cached = spawn({
|
||||
cmd: [bunExe(), "x", "github:piuccio/cowsay#HEAD", "hello bun!"],
|
||||
cwd: x_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
|
||||
@@ -64,7 +64,7 @@ test("basic 1", async () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -93,7 +93,7 @@ test("basic 1", async () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -129,7 +129,7 @@ test("dependency from root satisfies range from dependency", async () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -160,7 +160,7 @@ test("dependency from root satisfies range from dependency", async () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -197,7 +197,7 @@ test("peerDependency in child npm dependency should not maintain old version whe
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -238,7 +238,7 @@ test("peerDependency in child npm dependency should not maintain old version whe
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -277,7 +277,7 @@ test("package added after install", async () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -319,7 +319,7 @@ test("package added after install", async () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -355,7 +355,7 @@ test("package added after install", async () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -456,7 +456,7 @@ test("it should re-symlink binaries that become invalid when updating package ve
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -496,7 +496,7 @@ test("it should re-symlink binaries that become invalid when updating package ve
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -1744,7 +1744,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -1793,7 +1793,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -1847,7 +1847,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -1935,7 +1935,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2005,7 +2005,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2037,7 +2037,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2083,7 +2083,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2125,7 +2125,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2151,7 +2151,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2183,7 +2183,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2207,7 +2207,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2242,7 +2242,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2277,7 +2277,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2302,7 +2302,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2357,7 +2357,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2763,7 +2763,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: testEnv,
|
||||
@@ -2944,7 +2944,7 @@ for (const forceWaiterThread of [false, true]) {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3156,7 +3156,7 @@ describe("semver", () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3194,7 +3194,7 @@ describe("semver", () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3322,7 +3322,7 @@ for (let i = 0; i < prereleaseTests.length; i++) {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3464,7 +3464,7 @@ for (let i = 0; i < prereleaseFailTests.length; i++) {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3499,7 +3499,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3590,7 +3590,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3643,7 +3643,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3711,7 +3711,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3791,7 +3791,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3926,7 +3926,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -3972,7 +3972,7 @@ describe("yarn tests", () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4004,7 +4004,7 @@ describe("yarn tests", () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "test.js"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4056,7 +4056,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4097,7 +4097,7 @@ describe("yarn tests", () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4175,7 +4175,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install", "--dev"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4238,7 +4238,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4291,7 +4291,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install", "--dev"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4332,7 +4332,7 @@ describe("yarn tests", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install", "--dev"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4373,7 +4373,7 @@ describe("yarn tests", () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4449,7 +4449,7 @@ describe("yarn tests", () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "test.js"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4478,7 +4478,7 @@ describe("yarn tests", () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4510,7 +4510,7 @@ describe("yarn tests", () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "test.js"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4539,7 +4539,7 @@ describe("yarn tests", () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4572,7 +4572,7 @@ describe("yarn tests", () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "test.js"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4602,7 +4602,7 @@ describe("yarn tests", () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4629,7 +4629,7 @@ describe("yarn tests", () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "test.js"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4659,7 +4659,7 @@ describe("yarn tests", () => {
|
||||
var { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install", "--dev"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
@@ -4685,7 +4685,7 @@ describe("yarn tests", () => {
|
||||
({ stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install", "--dev"],
|
||||
cwd: packageDir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
|
||||
@@ -34,7 +34,7 @@ it("shouldn't crash when async test runner callback throws", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "test", "bad.test.js"],
|
||||
cwd: test_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: bunEnv,
|
||||
@@ -296,7 +296,7 @@ it("should return non-zero exit code for invalid syntax", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "test", "bad.test.js"],
|
||||
cwd: test_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: bunEnv,
|
||||
@@ -325,7 +325,7 @@ it("invalid syntax counts towards bail", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "test", "--bail=3"],
|
||||
cwd: test_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: bunEnv,
|
||||
@@ -638,7 +638,7 @@ describe("empty", () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "test", "empty.test.js"],
|
||||
cwd: test_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env: bunEnv,
|
||||
|
||||
@@ -437,7 +437,7 @@ it.skipIf(isWindows)("Bun.file() read text from pipe", async () => {
|
||||
const proc = Bun.spawn({
|
||||
cmd: ["bash", join(import.meta.dir + "/", "bun-streams-test-fifo.sh"), "/tmp/fifo"],
|
||||
stderr: "inherit",
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: null,
|
||||
env: {
|
||||
FIFO_TEST: large,
|
||||
|
||||
@@ -42,7 +42,7 @@ it("should install vendored node_modules with hardlink", async () => {
|
||||
const { stdout, stderr, exited } = spawn({
|
||||
cmd: [bunExe(), "install", "--backend", "hardlink"],
|
||||
cwd: package_dir,
|
||||
stdout: null,
|
||||
stdout: "pipe",
|
||||
stdin: "pipe",
|
||||
stderr: "pipe",
|
||||
env,
|
||||
|
||||
Reference in New Issue
Block a user