Avatar

pomdtr

I mainly enjoy building dev tools: - VS Code integration: https://github.com/pomdtr/valtown-vscode - CLI: https://github.com/pomdtr/vt
Joined June 14, 2023
Public vals
317
pomdtr avatar
pomdtr
test_explorer_router
Script
@jsxImportSource npm:hono/jsx
2
pomdtr avatar
pomdtr
test_explorer_icons
Script
@jsxImportSource https://esm.sh/hono/jsx
0
pomdtr avatar
pomdtr
hono_counter
Script
Hono Counter Component
0
pomdtr avatar
pomdtr
hydrate_hono_islands
Script
An interactive, runnable TypeScript val by pomdtr
1
pomdtr avatar
pomdtr
hono_island
Script
Hono Island See it in action at @pomdtr/hono_island_demo
0
pomdtr avatar
pomdtr
test_explorer_history
Script
An interactive, runnable TypeScript val by pomdtr
1
pomdtr avatar
pomdtr
search_liked_vals
Script
An interactive, runnable TypeScript val by pomdtr
0
pomdtr avatar
pomdtr
test_all_success
Script
An interactive, runnable TypeScript val by pomdtr
0
pomdtr avatar
pomdtr
test_all_failure
Script
An interactive, runnable TypeScript val by pomdtr
0
pomdtr avatar
pomdtr
test_explorer_ui
Script
@jsxImportSource https://esm.sh/hono/jsx
1
pomdtr avatar
pomdtr
example_test
Script
An interactive, runnable TypeScript val by pomdtr
0
pomdtr avatar
pomdtr
test_explorer
HTTP
Test Explorer Click on the play button next to list items to run them. Usage Fork this val Create new tests in any of vals (and export them) (see @pomdtr/example_test) import { assertEquals } from "https://deno.land/std@0.216.0/assert/mod.ts"; import { Test } from "https://esm.town/v/<account>/test_explorer"; export const exampleTestSuccess = new Test(() => { assertEquals(1 + 1, 2); }); export const exampleTestFailure = new Test(() => { assertEquals(1 + 1, 3); }); Go to https://<account>-test_explorer.web.val.run to run your test click on the val name to go to the val the tests are originating from click on the test name to run it ℹ️ You probably want to protect your test explorer behind an authentication middleware like @pomdtr/basicAuth Discovery mechanism In order to define a test, the user need to import the Test class from https://val.town/v/<account>/Test . So we can use the api to search for vals containing the https://val.town/v/<account>/Test string to locate the vals containing tests. Next, we need to extract the tests from the val exports. We use exported instanceof Test to filter them (at some point we will probably use static analysis for this). TODO [x] persist test results in sqlite [x] Improve styling (help welcome ❤️) [ ] View logs in a modal [ ] Batch http requests
6
pomdtr avatar
pomdtr
blob_admin_delete
Script
@jsxImportSource https://esm.sh/hono@4.0.8/jsx
0
pomdtr avatar
pomdtr
blob_admin_edit
Script
@jsxImportSource https://esm.sh/hono@4.0.8/jsx
0
pomdtr avatar
pomdtr
blob_admin_create
Script
@jsxImportSource https://esm.sh/hono@4.0.8/jsx
0
pomdtr avatar
pomdtr
counter
Script
@jsxImportSource https://esm.sh/react
0