diff options
author | 2023-02-23 23:57:19 -0800 | |
---|---|---|
committer | 2023-02-23 23:57:19 -0800 | |
commit | 3f04f8d0a653cf5decef2225c2044742b382718a (patch) | |
tree | 91eb6500834e3157ecb9ab208101aa368a1191c8 /test/bun.js | |
parent | b5bdde28ed34070cbb1d34d13f414f4c513ee40d (diff) | |
download | bun-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.ts | 6 | ||||
-rw-r--r-- | test/bun.js/test-test.test.ts | 4 |
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"); |