Skip to Content
Getting StartedRun Your First Test

Run Your First Test

1. Initialize a project

mkdir my-project && cd my-project glubean init

Expected folders:

my-project/ ├── explore/ ├── tests/ └── deno.json

2. Add environment variables

Create .env in project root:

BASE_URL=http://localhost:3000

3. Write a basic test

import { test } from "@glubean/sdk"; export const health = test("health", async (ctx) => { const baseUrl = ctx.vars.require("BASE_URL"); const res = await ctx.http.get(`${baseUrl}/health`); ctx.expect(res.status).toBe(200); });

4. Run it

glubean run ./tests

Or run from the editor gutter/Test Explorer if you installed the extension.

5. Inspect outputs

Last updated on