import { spawn } from "bun"; import { test, expect } from "bun:test"; test("args exclude run", async () => { const arg0 = process.argv[0]; const arg1 = import.meta.dir + "/print-process-args.js"; const exe = process.versions.bun.includes("debug") ? "bun-debug" : "bun"; const { stdout: s1 } = spawn([exe, "print-process-args.js"], { cwd: import.meta.dir, env: { BUN_DEBUG_QUIET_LOGS: "1" }, }); const t1 = JSON.parse(await new Response(s1).text()); expect(t1[0]).toBe(arg0); expect(t1[1]).toBe(arg1); const { stdout: s2 } = spawn([exe, "print-process-args.js", "arg1"], { cwd: import.meta.dir, env: { BUN_DEBUG_QUIET_LOGS: "1" }, }); const t2 = JSON.parse(await new Response(s2).text()); expect(t2[0]).toBe(arg0); expect(t2[1]).toBe(arg1); expect(t2[2]).toBe("arg1"); const { stdout: s3 } = spawn([exe, "run", "print-process-args.js"], { cwd: import.meta.dir, env: { BUN_DEBUG_QUIET_LOGS: "1" }, }); const t3 = JSON.parse(await new Response(s3).text()); expect(t3[0]).toBe(arg0); expect(t3[1]).toBe(arg1); const { stdout: s4 } = spawn([exe, "run", "print-process-args.js", "arg1", "arg2"], { cwd: import.meta.dir, env: { BUN_DEBUG_QUIET_LOGS: "1" }, }); const t4 = JSON.parse(await new Response(s4).text()); expect(t4[0]).toBe(arg0); expect(t4[1]).toBe(arg1); expect(t4[2]).toBe("arg1"); expect(t4[3]).toBe("arg2"); }); iro/fix-flask-tests Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/test/snippets/react-context-value-func.tsx (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-08-20fix(ReferenceError): expected type in getCode (#1120)Gravatar Hyro 1-1/+1
2022-08-20Fix running zig testsGravatar Jarred Sumner 1-3/+10
2022-08-20Fix crash on invalid JSXGravatar Jarred Sumner 1-1/+1
2022-08-20Add `code` to `ResolveError`Gravatar Jarred Sumner 1-0/+14
2022-08-20Add buffer.indexOf, includes and lastIndexOf (#1112)Gravatar Zilin Zhu 2-32/+237
2022-08-19fix buffer.slice(0, 0) (#1114)Gravatar Zilin Zhu 23-27/+58
2022-08-19fix buffer.copy (#1113)Gravatar Zilin Zhu 2-21/+35
2022-08-19Update build-idGravatar Jarred Sumner 1-1/+1
2022-08-19Make React SSR up to 3x fasterGravatar Jarred Sumner 1-238/+247
2022-08-192x faster `Bun.serve` with async function handlersGravatar Jarred Sumner 1-4/+13
2022-08-19Update bun init testbun-v0.1.10Gravatar Jarred Sumner 1-2/+2
2022-08-18Synchronously dispatch `close` eventGravatar Jarred Sumner 1-0/+5
2022-08-18Fix memory leak in `WebSocket`Gravatar Jarred Sumner 1-13/+4
2022-08-18Make `Request`, `Response` and `TextDecoder` not read-onlyGravatar Jarred Sumner 7-120/+180
2022-08-18Update build-idGravatar Jarred Sumner 1-1/+1
2022-08-18un-delete some codeGravatar Jarred Sumner 2-8/+15
2022-08-18Add string support to `Buffer.fill`Gravatar Jarred Sumner 7-77/+119
2022-08-18[node compat] Fix issue with `Buffer.compare` when called on the constructorGravatar Jarred Sumner 1-31/+42
2022-08-18Fix console.log printing `[native code]` for too many thingsGravatar Jarred Sumner 1-1/+6
2022-08-18Faster TextDecoderGravatar Jarred Sumner 24-369/+399
2022-08-18Fix Next.js regressionGravatar Jarred Sumner 1-12/+45
2022-08-18Fix `bun:wrap` not loadingGravatar Jarred Sumner 3-21/+41