aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-02-23 23:57:19 -0800
committerGravatar GitHub <noreply@github.com> 2023-02-23 23:57:19 -0800
commit3f04f8d0a653cf5decef2225c2044742b382718a (patch)
tree91eb6500834e3157ecb9ab208101aa368a1191c8 /test/bun.js
parentb5bdde28ed34070cbb1d34d13f414f4c513ee40d (diff)
downloadbun-3f04f8d0a653cf5decef2225c2044742b382718a.tar.gz
bun-3f04f8d0a653cf5decef2225c2044742b382718a.tar.zst
bun-3f04f8d0a653cf5decef2225c2044742b382718a.zip
Upgrade Zig (#2151)
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
Diffstat (limited to 'test/bun.js')
-rw-r--r--test/bun.js/bunExe.ts6
-rw-r--r--test/bun.js/test-test.test.ts4
2 files changed, 3 insertions, 7 deletions
diff --git a/test/bun.js/bunExe.ts b/test/bun.js/bunExe.ts
index 2f1a89cd2..a66f702de 100644
--- a/test/bun.js/bunExe.ts
+++ b/test/bun.js/bunExe.ts
@@ -1,7 +1,3 @@
export function bunExe() {
- if (Bun.version.includes("debug")) {
- return "bun-debug";
- }
-
- return "bun";
+ return process.execPath;
}
diff --git a/test/bun.js/test-test.test.ts b/test/bun.js/test-test.test.ts
index 06573cc7d..cc6d967c2 100644
--- a/test/bun.js/test-test.test.ts
+++ b/test/bun.js/test-test.test.ts
@@ -2069,12 +2069,12 @@ it("should return non-zero exit code for invalid syntax", async () => {
try {
await writeFile(join(test_dir, "bad.test.js"), "!!!");
const { stdout, stderr, exited } = spawn({
- cmd: [bunExe(), "wiptest", "bad.test.js"],
+ cmd: [bunExe(), "test", "bad.test.js"],
cwd: test_dir,
stdout: null,
stdin: "pipe",
stderr: "pipe",
- bunEnv,
+ env: bunEnv,
});
const err = await new Response(stderr).text();
expect(err).toContain("error: Unexpected end of file");