プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

create bun

Kohei Watanabe (Jul 7, 2022, 2:41 PM +0900) b57aed93 f4ec67db

+30
bun/bun.lockb

This is a binary file and will not be displayed.

+7
bun/hello.test.ts
··· 1 + import { test, expect } from "bun:test"; 2 + import hello from "./hello"; 3 + 4 + test("response", async () => { 5 + const res = hello.fetch(new Request("")); 6 + expect(await res.text()).toBe("Hello, World!"); 7 + });
+6
bun/hello.ts
··· 1 + export default { 2 + port: 3000, 3 + fetch(request: Request) { 4 + return new Response("Hello, World!"); 5 + }, 6 + };
+9
bun/package.json
··· 1 + { 2 + "name": "bun-example", 3 + "scripts": { 4 + "test": "bun wiptest" 5 + }, 6 + "dependencies": { 7 + "bun-types": "^0.0.83" 8 + } 9 + }
+8
bun/tsconfig.json
··· 1 + { 2 + "compilerOptions": { 3 + "target": "esnext", 4 + "module": "esnext", 5 + "lib": ["esnext"], 6 + "types": ["bun-types"] 7 + } 8 + }